All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] MIPS: IP22/IP32: Add missing ifdefs to Platform files
@ 2014-10-08  1:43 Joshua Kinard
  2014-10-08 10:34   ` Markos Chandras
  0 siblings, 1 reply; 4+ messages in thread
From: Joshua Kinard @ 2014-10-08  1:43 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: Linux MIPS List

In arch/mips/sgi-ip22/Platform and arch/mips/sgi-ip32/Platform, ifdefs for
CONFIG_SGI_IP22 and CONFIG_SGI_IP32 are missing, which can cause the
definitions for these platforms to get included in builds for other platforms.
 This patch adds these missing ifdefs, which matches IP27's Platform file.

Signed-off-by: Joshua Kinard <kumba@gentoo.org>
---
 arch/mips/sgi-ip22/Platform |    8 +++++---
 arch/mips/sgi-ip32/Platform |    9 ++++++---
 2 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/arch/mips/sgi-ip22/Platform b/arch/mips/sgi-ip22/Platform
index b7a4b7e..5fa3c7a 100644
--- a/arch/mips/sgi-ip22/Platform
+++ b/arch/mips/sgi-ip22/Platform
@@ -7,7 +7,8 @@
 # current variable will break so for 64-bit kernels we have to raise the start
 # address by 8kb.
 #
-platform-$(CONFIG_SGI_IP22)		+= sgi-ip22/
+ifdef CONFIG_SGI_IP22
+platform-$(CONFIG_SGI_IP22)	+= sgi-ip22/
 cflags-$(CONFIG_SGI_IP22)	+= -I$(srctree)/arch/mips/include/asm/mach-ip22
 ifdef CONFIG_32BIT
 load-$(CONFIG_SGI_IP22)		+= 0xffffffff88002000
@@ -15,6 +16,7 @@ endif
 ifdef CONFIG_64BIT
 load-$(CONFIG_SGI_IP22)		+= 0xffffffff88004000
 endif
+endif
 
 #
 # SGI IP28 (Indigo2 R10k)
@@ -28,7 +30,7 @@ ifdef CONFIG_SGI_IP28
   ifeq ($(call cc-option-yn,-mr10k-cache-barrier=store), n)
       $(error gcc doesn't support needed option -mr10k-cache-barrier=store)
   endif
-endif
-platform-$(CONFIG_SGI_IP28)		+= sgi-ip22/
+platform-$(CONFIG_SGI_IP28)	+= sgi-ip22/
 cflags-$(CONFIG_SGI_IP28)	+= -mr10k-cache-barrier=store -I$(srctree)/arch/mips/include/asm/mach-ip28
 load-$(CONFIG_SGI_IP28)		+= 0xa800000020004000
+endif
diff --git a/arch/mips/sgi-ip32/Platform b/arch/mips/sgi-ip32/Platform
index 0fea556..ab95705 100644
--- a/arch/mips/sgi-ip32/Platform
+++ b/arch/mips/sgi-ip32/Platform
@@ -6,6 +6,9 @@
 # a multiple of the kernel stack size or the handling of the current variable
 # will break.
 #
-platform-$(CONFIG_SGI_IP32)	+= sgi-ip32/
-cflags-$(CONFIG_SGI_IP32)	+= -I$(srctree)/arch/mips/include/asm/mach-ip32
-load-$(CONFIG_SGI_IP32)		+= 0xffffffff80004000
+ifdef CONFIG_SGI_IP32
+platform-$(CONFIG_SGI_IP32)		+= sgi-ip32/
+cflags-$(CONFIG_SGI_IP32)		+= -I$(srctree)/arch/mips/include/asm/mach-ip32
+load-$(CONFIG_SGI_IP32)			+= 0xffffffff80004000
+endif
+

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-08 11:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-08  1:43 [PATCH] MIPS: IP22/IP32: Add missing ifdefs to Platform files Joshua Kinard
2014-10-08 10:34 ` Markos Chandras
2014-10-08 10:34   ` Markos Chandras
2014-10-08 11:30   ` Joshua Kinard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.