Skip to contentSkip to conversation

: sparc64: Add __arch64__ to CHECKFLAGS

PATCH New David Miller 1 participant 1 message Sep 12, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/16 : sparc64: Add __arch64__ to CHECKFLAGS

sparc64: Add __arch64__ to CHECKFLAGS

Otherwise sparse doesn't work. The 32 vs. 64 header ifdef used under arch/sparc/include/asm/ is:

#if defined(__sparc__) && defined(__arch64__)

And that doesn't work for sparse unless we give it __arch64__

---
 arch/sparc64/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/sparc64/Makefile +1 -1
index b785a39..c7214ab 100644
@@ -7,7 +7,7 @@
 # Copyright (C) 1998 Jakub Jelinek ([email protected])
 #
 
-CHECKFLAGS	+= -D__sparc__ -D__sparc_v9__ -m64
+CHECKFLAGS	+= -D__sparc__ -D__sparc_v9__ -D__arch64__ -m64
 
 # Undefine sparc when processing vmlinux.lds - it is used
 # And teach CPP we are doing 64 bit builds (for this case)
Signature · 1 line
1.5.6.5.GIT