]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: shmobile: mark mackerel sh_mmcif_device __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Thu, 14 Feb 2013 22:26:54 +0000 (23:26 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 19 Feb 2013 02:00:18 +0000 (11:00 +0900)
commitd0ccc48e7e4d8581bf4db0cf8041f59d37e28092
treea84a5275ba5fa7561324f7156f473387cab22905
parent7fb5931e4b594da1e22abe8e02751a3ed9d4a0bd
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 <arnd@arndb.de>
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/board-mackerel.c