Subject: linux-next: sparc tree build failure

From: Stephen Rothwell <[email-masked]>
Date: Tue, 22 Jul 2008 17:41:51 +1000

Hi Dave,

Today's (and for a few days) linux-next build (sparc32 defconfig) failed
like this:

In file included from include2/asm/page.h:4,
                 from arch/sparc/kernel/vmlinux.lds.S:4:
include/asm-sparc/page_64.h:11:2: #error No page size specified in kernel configuration

Due to the merge of page.h (I suspect).  The patch below fixes it.
-- 
Cheers,
Stephen Rothwell                    [email-masked]
http://www.canb.auug.org.au/~sfr/

>>From 2c8b8ccd3bb14cf6100ba86411d7ef676cf974df Mon Sep 17 00:00:00 2001
From: Stephen Rothwell <[email-masked]>
Date: Tue, 22 Jul 2008 17:34:27 +1000
Subject: [PATCH] sparc32: pass -m32 when building vmlinux.lds

Otherwise it breaks since we merged asm/page.h

Signed-off-by: Stephen Rothwell <[email-masked]>
---
 arch/sparc/Makefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/sparc/Makefile b/arch/sparc/Makefile
index fef28e2..6668e60 100644
--- a/arch/sparc/Makefile
+++ b/arch/sparc/Makefile
@@ -18,6 +18,7 @@ CHECKFLAGS	+= -D__sparc__
 #KBUILD_CFLAGS += -g -pipe -fcall-used-g5 -fcall-used-g7
 KBUILD_CFLAGS += -m32 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7
 KBUILD_AFLAGS += -m32
+CPPFLAGS_vmlinux.lds += -m32
 
 #LDFLAGS_vmlinux = -N -Ttext 0xf0004000
 #  Since 2.5.40, the first stage is left not btfix-ed.
-- 
1.5.6.3