From fbfcdf254d7be71b25bfc053e9d22ef8ff061750 Mon Sep 17 00:00:00 2001 From: Kevin McKinney Date: Mon, 15 Aug 2011 22:10:12 -0400 Subject: [PATCH] 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 Reviewed-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- drivers/staging/bcm/Bcmchar.c | 2 -- drivers/staging/bcm/headers.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/bcm/Bcmchar.c b/drivers/staging/bcm/Bcmchar.c index 4bcc38b5bbb3..d3f3856e2dcc 100644 --- a/drivers/staging/bcm/Bcmchar.c +++ b/drivers/staging/bcm/Bcmchar.c @@ -1974,8 +1974,6 @@ static const struct file_operations bcm_fops = { .llseek = no_llseek, }; -extern struct class *bcm_class; - int register_control_device_interface(PMINI_ADAPTER Adapter) { diff --git a/drivers/staging/bcm/headers.h b/drivers/staging/bcm/headers.h index 947d06325681..da47db8c8f29 100644 --- a/drivers/staging/bcm/headers.h +++ b/drivers/staging/bcm/headers.h @@ -74,4 +74,6 @@ #define DRV_VERSION VER_FILEVERSION_STR #define PFX DRV_NAME " " +extern struct class *bcm_class; + #endif -- 2.34.1