From: David S. Miller Date: Fri, 12 Sep 2008 06:14:52 +0000 (-0700) Subject: sparc64: Add __arch64__ to CHECKFLAGS X-Git-Tag: v2.6.28-rc1~706^2~37 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=4845afac95a653f8e64c45024cbb94264df54b8f;p=linux-2.6-omap-h63xx.git 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__ Signed-off-by: David S. Miller --- diff --git a/arch/sparc64/Makefile b/arch/sparc64/Makefile index b785a395b12..c7214abc0d8 100644 --- a/arch/sparc64/Makefile +++ b/arch/sparc64/Makefile @@ -7,7 +7,7 @@ # Copyright (C) 1998 Jakub Jelinek (jj@ultra.linux.cz) # -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)