Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] Fix compile warnings with CONFIG_PM=n

Fix compile warnings with CONFIG_PM=n

arch/powerpc/platforms/powermac/feature.c:489: warning: 'save_gpio_levels' defined but not used
arch/powerpc/platforms/powermac/feature.c:490: warning: 'save_gpio_extint' defined but not used
arch/powerpc/platforms/powermac/feature.c:491: warning: 'save_gpio_normal' defined but not used
arch/powerpc/platforms/powermac/feature.c:492: warning: 'save_unin_clock_ctl' defined but not used

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>

authored by

Olaf Hering and committed by
Paul Mackerras
0613ffbf 25787afa

+4 -4
+4 -4
arch/powerpc/platforms/powermac/feature.c
··· 486 486 487 487 static u32 save_fcr[6]; 488 488 static u32 save_mbcr; 489 - static u32 save_gpio_levels[2]; 490 - static u8 save_gpio_extint[KEYLARGO_GPIO_EXTINT_CNT]; 491 - static u8 save_gpio_normal[KEYLARGO_GPIO_CNT]; 492 - static u32 save_unin_clock_ctl; 493 489 static struct dbdma_regs save_dbdma[13]; 494 490 static struct dbdma_regs save_alt_dbdma[13]; 495 491 ··· 1544 1548 1545 1549 1546 1550 #ifdef CONFIG_PM 1551 + static u32 save_gpio_levels[2]; 1552 + static u8 save_gpio_extint[KEYLARGO_GPIO_EXTINT_CNT]; 1553 + static u8 save_gpio_normal[KEYLARGO_GPIO_CNT]; 1554 + static u32 save_unin_clock_ctl; 1547 1555 1548 1556 static void keylargo_shutdown(struct macio_chip *macio, int sleep_mode) 1549 1557 {