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

arm: mach-dove: Mark dove_io_desc as __maybe_unused

Without this, we get the warnings below when CONFIG_MMU is disabled:

linux/arch/arm/mach-dove/common.c:51:24: warning: ‘dove_io_desc’ defined
but not used [-Wunused-variable]
static struct map_desc dove_io_desc[] __initdata = {
^~~~~~~~~~~~

Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Cc: Gregory Clement <gregory.clement@bootlin.com>
Cc: Russell King <linux@armlinux.org.uk>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>

authored by

Vincenzo Frascino and committed by
Gregory CLEMENT
afb80cf1 37b146e3

+1 -1
+1 -1
arch/arm/mach-dove/common.c
··· 48 48 /***************************************************************************** 49 49 * I/O Address Mapping 50 50 ****************************************************************************/ 51 - static struct map_desc dove_io_desc[] __initdata = { 51 + static struct map_desc __maybe_unused dove_io_desc[] __initdata = { 52 52 { 53 53 .virtual = (unsigned long) DOVE_SB_REGS_VIRT_BASE, 54 54 .pfn = __phys_to_pfn(DOVE_SB_REGS_PHYS_BASE),