From: Arnd Bergmann Date: Thu, 14 Feb 2013 22:26:54 +0000 (+0100) Subject: ARM: shmobile: mark mackerel sh_mmcif_device __maybe_unused X-Git-Tag: next-20130220~14^2^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d0ccc48e7e4d8581bf4db0cf8041f59d37e28092;p=karo-tx-linux.git ARM: shmobile: mark mackerel sh_mmcif_device __maybe_unused Patch eac036ef9e "ARM: shmobile: streamline mackerel SD and MMC devices" made the use of the sh_mmcif_device variable for mackarel optional, but the definition is always provided, causing a build warning. arch/arm/mach-shmobile/board-mackerel.c:1120:31: warning: 'sh_mmcif_device' defined but not used [-Wunused-variable] Marking the variable as __maybe_unused will do the right thing here. Signed-off-by: Arnd Bergmann Cc: Guennadi Liakhovetski Signed-off-by: Simon Horman --- diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index 45e04b90ee84..15d92b35f042 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c @@ -1121,7 +1121,7 @@ static struct sh_mmcif_plat_data sh_mmcif_plat = { .slave_id_rx = SHDMA_SLAVE_MMCIF_RX, }; -static struct platform_device sh_mmcif_device = { +static struct platform_device sh_mmcif_device __maybe_unused = { .name = "sh_mmcif", .id = 0, .dev = {