]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/pcmcia/sa1111_badge4.c: avoid unused function warning
authorArnd Bergmann <arnd@arndb.de>
Fri, 17 Nov 2017 23:31:26 +0000 (15:31 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 18 Nov 2017 00:10:04 +0000 (16:10 -0800)
commitc33c44e4a8b7926510a57ace58bbd1489e5725fc
treeba3bca28c485d5fad90917c215c6abfed993c378
parentbd35ab8eb694c76842520a8fc4e27f9a737b85ee
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>
drivers/pcmcia/sa1111_badge4.c