[v2,1/2] sparc: use a common CHECKFLAGS entry for common flags

Message ID 20171109061652.14948-2-luc.vanoostenryck@gmail.com
State Changes Requested
Delegated to: David Miller
Headers show
Series
  • sparc: pass endianness info to sparse
Related show

Commit Message

Luc Van Oostenryck Nov. 9, 2017, 6:16 a.m.
---
 arch/sparc/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Patch

diff --git a/arch/sparc/Makefile b/arch/sparc/Makefile
index 8496a074b..a42aa114e 100644
--- a/arch/sparc/Makefile
+++ b/arch/sparc/Makefile
@@ -14,12 +14,13 @@  else
         KBUILD_DEFCONFIG := sparc64_defconfig
 endif
 
+CHECKFLAGS     += -D__sparc__
+
 ifeq ($(CONFIG_SPARC32),y)
 #####
 # sparc32
 #
 
-CHECKFLAGS     += -D__sparc__
 LDFLAGS        := -m elf32_sparc
 export BITS    := 32
 UTS_MACHINE    := sparc
@@ -38,7 +39,7 @@  else
 # sparc64
 #
 
-CHECKFLAGS    += -D__sparc__ -D__sparc_v9__ -D__arch64__ -m64
+CHECKFLAGS    += -D__sparc_v9__ -D__arch64__ -m64
 LDFLAGS       := -m elf64_sparc
 export BITS   := 64
 UTS_MACHINE   := sparc64