]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: pxa: mark spitz_card_pwr_ctrl as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Fri, 29 Jan 2016 14:06:26 +0000 (15:06 +0100)
committerRobert Jarzmik <robert.jarzmik@free.fr>
Mon, 1 Feb 2016 20:44:08 +0000 (21:44 +0100)
commit289873476efd0aeda64e84075285f04b0d1e8a89
tree454cdd27d80b6b7c7ee15e34f48356d1d34f4246
parentea7743e2719d34eacb4cb206ae227120029d06c6
ARM: pxa: mark spitz_card_pwr_ctrl as __maybe_unused

This function is only used when CONFIG_PCMCIA is enabled, otherwise
we get a harmless warning:

arch/arm/mach-pxa/spitz.c:204:13: warning: 'spitz_card_pwr_ctrl' defined but not used [-Wunused-function]

Marking it as __maybe_unused keeps the logic simple and avoids the
warning on randconfig builds.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
arch/arm/mach-pxa/spitz.c