Skip to contentSkip to conversation

ARM: shmobile: Move SYSC base variable to inside ifdefs

PATCH New Magnus Damm 2 participants 2 messages Feb 24, 2014 – Feb 26, 2014

Subsystems (4)
lore
Share & tools
lore

Magnus Damm

author maintainer
#0 lore raw

PATCH 1/1 ARM: shmobile: Move SYSC base variable to inside ifdefs

From: Magnus Damm <[email protected]>

Move the rcar_sysc_base variable to inside #ifdefs to avoid triggering build warnings in case PM or SMP is not selected.

---

Depends on "[PATCH 00/12] ARM: shmobile: Rework include path for SoC files"

 arch/arm/mach-shmobile/pm-rcar.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm/mach-shmobile/pm-rcar.c +1 -2
@@ -15,8 +15,6 @@
 #include <asm/io.h>
 #include "pm-rcar.h"
 
-static void __iomem *rcar_sysc_base;
-
 /* SYSC */
 #define SYSCSR 0x00
 #define SYSCISR 0x04
@@ -35,6 +33,7 @@ static void __iomem *rcar_sysc_base;
 
 #if defined(CONFIG_PM) || defined(CONFIG_SMP)
 
+static void __iomem *rcar_sysc_base;
 static DEFINE_SPINLOCK(rcar_sysc_lock); /* SMP CPUs + I/O devices */
 
 static int rcar_sysc_pwr_on_off(struct rcar_sysc_ch *sysc_ch,
#1 lore raw

PATCH 1/1 ARM: shmobile: Move SYSC base variable to inside ifdefs

Quoted 6 lines · Magnus Damm

From: Magnus Damm <[email protected]>

Move the rcar_sysc_base variable to inside #ifdefs to avoid triggering build warnings in case PM or SMP is not selected.

Thanks, I have queued this up.