Messages in this thread Patch in this message | | | Subject | Re: [PATCH] Fix compile breakage caused by asmlinkage_protect | From | Martin Schwidefsky <> | Date | Fri, 11 Apr 2008 18:03:07 +0200 |
| |
On Fri, 2008-04-11 at 11:37 -0400, Kyle McMartin wrote: > On Fri, Apr 11, 2008 at 08:25:05AM -0700, Linus Torvalds wrote: > > On Fri, 11 Apr 2008, Al Viro wrote: > > > and that gets us -traditional-cpp passed to cc1, with obvious resulting > > > unhappiness from vararg macro. > > > > Yeah, I figured it out eventually. > > > > I do think the architectures should try to avoid it, if only because x86 > > doesn't use -traditional (so they'll hit things like this unnecessarily > > otherwise), but I'll apply Heiko's minimal patch in the meantime. > > > > Cool with me; I'll try to puzzle out why removing -traditional breaks on > those two specific files. Ugh, big cleanups likely.
So there is at least one architecture that really requires -traditional, it is not an option to just remove them. For s390 the kernel compiles fine without -traditional on the AFLAGS so we can as well remove them. I'll queue the patch below. In the meantime Heikos patch will have to do.
-- blue skies, Martin.
"Reality continues to ruin my life." - Calvin.
--- [PATCH] s390: remove -traditional from AFLAGS
From: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> ---
diff --git a/arch/s390/kernel/Makefile b/arch/s390/kernel/Makefile index 4d3e383..cfb6ccc 100644 --- a/arch/s390/kernel/Makefile +++ b/arch/s390/kernel/Makefile @@ -2,7 +2,7 @@ # Makefile for the linux kernel. # -EXTRA_AFLAGS := -traditional +EXTRA_AFLAGS := # # Passing null pointers is ok for smp code, since we access the lowcore here. diff --git a/arch/s390/lib/Makefile b/arch/s390/lib/Makefile index 5208443..dd6f9f5 100644 --- a/arch/s390/lib/Makefile +++ b/arch/s390/lib/Makefile @@ -2,7 +2,7 @@ # Makefile for s390-specific library files.. # -EXTRA_AFLAGS := -traditional +EXTRA_AFLAGS := lib-y += delay.o string.o uaccess_std.o uaccess_pt.o obj-$(CONFIG_32BIT) += div64.o qrnnd.o diff --git a/arch/s390/math-emu/Makefile b/arch/s390/math-emu/Makefile index 73b3e72..42828d3 100644 --- a/arch/s390/math-emu/Makefile +++ b/arch/s390/math-emu/Makefile @@ -5,4 +5,4 @@ obj-$(CONFIG_MATHEMU) := math.o EXTRA_CFLAGS := -I$(src) -Iinclude/math-emu -w -EXTRA_AFLAGS := -traditional +EXTRA_AFLAGS :=
| |