drivers/pcmcia/sa1111_badge4.c: avoid unused function warning

pcmv_setup() is only used when the badge4 driver is built-in, but not
when it is a loadable module:

  drivers/pcmcia/sa1111_badge4.c:153:122: error: 'pcmv_setup' defined but not used [-Werror=unused-function]

This adds an #ifdef to avoid the definition of the unused function in
the modular case.

Link: http://lkml.kernel.org/r/20170911201133.3421636-1-arnd@arndb.de
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Russell King <rmk@armlinux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Arnd Bergmann 2017-11-17 15:31:26 -08:00 коммит произвёл Linus Torvalds
Родитель 64c349f4ae
Коммит d4258247d9
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -144,6 +144,7 @@ int pcmcia_badge4_init(struct sa1111_dev *dev)
sa11xx_drv_pcmcia_add_one); sa11xx_drv_pcmcia_add_one);
} }
#ifndef MODULE
static int __init pcmv_setup(char *s) static int __init pcmv_setup(char *s)
{ {
int v[4]; int v[4];
@ -158,3 +159,4 @@ static int __init pcmv_setup(char *s)
} }
__setup("pcmv=", pcmv_setup); __setup("pcmv=", pcmv_setup);
#endif