Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: bcm: Fix a coding style error reported by checkpatch.pl

Tool checkpatch.pl reported the following error: extern struct class *bcm_class;"
declaration not allowed in .c files. Therefore, I move this declaration into
the header "headers.h" file.

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Kevin McKinney and committed by
Greg Kroah-Hartman
fbfcdf25 6c15e002

+2 -2
-2
drivers/staging/bcm/Bcmchar.c
··· 1974 1974 .llseek = no_llseek, 1975 1975 }; 1976 1976 1977 - extern struct class *bcm_class; 1978 - 1979 1977 int register_control_device_interface(PMINI_ADAPTER Adapter) 1980 1978 { 1981 1979
+2
drivers/staging/bcm/headers.h
··· 74 74 #define DRV_VERSION VER_FILEVERSION_STR 75 75 #define PFX DRV_NAME " " 76 76 77 + extern struct class *bcm_class; 78 + 77 79 #endif