diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-01-27 10:57:20 -0500 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-02-23 21:27:02 -0500 |
commit | dc0d79b5c9489da52ada177bfc4bf4e38b8e556f (patch) | |
tree | 4eb16bd1cffeb25a1bbac34c5e3b06da474f5f42 /drivers/scsi/arm | |
parent | 6fea7f6fbc1df232d9ff3d35080fb3e19eef4ef2 (diff) |
scsi: fas216: avoid fas216_log_setup for loadable module
We get a warning for the fas216 driver when it is compiled as a loadable
module, as the __setup() functions are never called then:
scsi/arm/fas216.c:101:19: warning: 'fas216_log_setup' defined but not used [-Wunused-function]
static int __init fas216_log_setup(char *str)
This adds an #ifndef MODULE around the definition to shut up the warning
and clarify for the reader when it is used or not.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/arm')
-rw-r--r-- | drivers/scsi/arm/fas216.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/arm/fas216.c b/drivers/scsi/arm/fas216.c index decdc71b6b86..24388795ee9a 100644 --- a/drivers/scsi/arm/fas216.c +++ b/drivers/scsi/arm/fas216.c | |||
@@ -98,6 +98,7 @@ static int level_mask = LOG_ERROR; | |||
98 | 98 | ||
99 | module_param(level_mask, int, 0644); | 99 | module_param(level_mask, int, 0644); |
100 | 100 | ||
101 | #ifndef MODULE | ||
101 | static int __init fas216_log_setup(char *str) | 102 | static int __init fas216_log_setup(char *str) |
102 | { | 103 | { |
103 | char *s; | 104 | char *s; |
@@ -138,6 +139,7 @@ static int __init fas216_log_setup(char *str) | |||
138 | } | 139 | } |
139 | 140 | ||
140 | __setup("fas216_logging=", fas216_log_setup); | 141 | __setup("fas216_logging=", fas216_log_setup); |
142 | #endif | ||
141 | 143 | ||
142 | static inline unsigned char fas216_readb(FAS216_Info *info, unsigned int reg) | 144 | static inline unsigned char fas216_readb(FAS216_Info *info, unsigned int reg) |
143 | { | 145 | { |