Skip to content

Commit 060fd1b

Browse files
committed
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>
1 parent 29408ed commit 060fd1b

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎arch/arm/mach-integrator/integrator_ap.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ void __iomem *ap_syscon_base;
9494
* f1b00000 1b000000 GPIO
9595
*/
9696

97-
static struct map_desc ap_io_desc[] __initdata = {
97+
static struct map_desc ap_io_desc[] __initdata __maybe_unused = {
9898
{
9999
.virtual = IO_ADDRESS(INTEGRATOR_HDR_BASE),
100100
.pfn = __phys_to_pfn(INTEGRATOR_HDR_BASE),

‎arch/arm/mach-integrator/integrator_cp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static void __iomem *intcp_con_base;
7878
* fcb00000 cb000000 CP system control
7979
*/
8080

81-
static struct map_desc intcp_io_desc[] __initdata = {
81+
static struct map_desc intcp_io_desc[] __initdata __maybe_unused = {
8282
{
8383
.virtual = IO_ADDRESS(INTEGRATOR_HDR_BASE),
8484
.pfn = __phys_to_pfn(INTEGRATOR_HDR_BASE),

‎arch/arm/mach-versatile/core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ void __init versatile_init_irq(void)
114114
writel(PIC_MASK, VA_SIC_BASE + SIC_INT_PIC_ENABLE);
115115
}
116116

117-
static struct map_desc versatile_io_desc[] __initdata = {
117+
static struct map_desc versatile_io_desc[] __initdata __maybe_unused = {
118118
{
119119
.virtual = IO_ADDRESS(VERSATILE_SYS_BASE),
120120
.pfn = __phys_to_pfn(VERSATILE_SYS_BASE),

0 commit comments

Comments
 (0)