]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
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)
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

index 825f903ab77eb462ef3d8153da4292e9dbe55e9c..d9578bc49fdc61766c430e55e1ab21857a6ebf03 100644 (file)
@@ -201,7 +201,7 @@ static void __init spitz_scoop_init(void)
 }
 
 /* Power control is shared with between one of the CF slots and SD */
-static void spitz_card_pwr_ctrl(uint8_t enable, uint8_t new_cpr)
+static void __maybe_unused spitz_card_pwr_ctrl(uint8_t enable, uint8_t new_cpr)
 {
        unsigned short cpr;
        unsigned long flags;