diff options
author | Arnd Bergmann <arnd@arndb.de> | 2013-02-14 13:50:57 +0100 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2013-02-14 15:04:37 +0100 |
commit | 060fd1be0c720166091470ffb7846512b82c1a87 (patch) | |
tree | c54466248ee3f42b47befdd48bed4c2616b9f58d /arch/arm/mach-integrator/integrator_ap.c | |
parent | 29408ed963cc9839c742ed61b8e8e69bff431eb0 (diff) | |
download | linux-060fd1be0c720166091470ffb7846512b82c1a87.tar.gz linux-060fd1be0c720166091470ffb7846512b82c1a87.tar.bz2 linux-060fd1be0c720166091470ffb7846512b82c1a87.zip |
ARM: integrator/versatile: fix NOMMU warnings
On NOMMU kernels, the io_desc variables are unused
because we don't use the MMU to remap the MMIO
areas.
Marking these variables as __maybe_unused easily
avoids the otherwise harmless warnings like
warning: 'versatile_io_desc' defined but not used
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Russell King <linux@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-integrator/integrator_ap.c')
-rw-r--r-- | arch/arm/mach-integrator/integrator_ap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-integrator/integrator_ap.c b/arch/arm/mach-integrator/integrator_ap.c index 11e2a4145807..11b1d21f3c77 100644 --- a/arch/arm/mach-integrator/integrator_ap.c +++ b/arch/arm/mach-integrator/integrator_ap.c @@ -94,7 +94,7 @@ void __iomem *ap_syscon_base; * f1b00000 1b000000 GPIO */ -static struct map_desc ap_io_desc[] __initdata = { +static struct map_desc ap_io_desc[] __initdata __maybe_unused = { { .virtual = IO_ADDRESS(INTEGRATOR_HDR_BASE), .pfn = __phys_to_pfn(INTEGRATOR_HDR_BASE), |