]> git.baikalelectronics.ru Git - kernel.git/commit
staging: silicom/bypasslib/bp_ioctl.h: Fix erroneous global variable definitions
authorJoel Porquet <joel@porquet.org>
Mon, 26 May 2014 16:07:38 +0000 (18:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 May 2014 17:36:07 +0000 (10:36 -0700)
commit763ed407930bf8ac6c7be58b0a7830f54aedcaa6
tree1fba58e884b329315865f877d7215b2f56609d4c
parentcfc5a729a97b72088fe098e15b285a00b45a327f
staging: silicom/bypasslib/bp_ioctl.h: Fix erroneous global variable definitions

Originally, this header was defining two new typedefs, CMND_TYPE and
CMND_TYPE_SD, following this type of declaration:

typedef enum {
...
} CMND_TYPE;

A previous commit (c7e02753a85a1d59b49e8aeed0f3fe9a1ad71583) tried to
fix warnings that were pointed out by checkpatch.pl, concerning not
adding new typedefs. But this commit only removed the 'typedef' keyword,
thus transforming both the typedefs into two the definition of global
variables. For example:

enum {
...
} CMND_TYPE;

As noticed by the Sparse tool, this patch removes those erroneous global
variable definitions, and just leaves anonymous enum type definitions:

enum {
...
};

Signed-off-by: Joel Porquet <joel@porquet.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/silicom/bypasslib/bp_ioctl.h