Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

m32r: build fix for __stringify macro

This patch fixes the following build error of 2.6.30-rc3-git2:

AS arch/m32r/kernel/head.o
In file included from /include/linux/init.h:7,
from /arch/m32r/kernel/head.S:11:
/include/linux/stringify.h:9: error: syntax error in macro parameter list
/include/linux/stringify.h:10: error: syntax error in macro parameter list

This build error was caused at __HEAD macro in arch/m32r/kernel/head.S,
which uses __stringify() macro.

Remove -traditional option from EXTRA_AFLAGS for the m32r,
because the __stringify() macro depends on the gcc's variadic macro
extension function, due to commit:

Make __stringify support variable argument macros too
commit: 8f7c2c37319a81ef4c2bfdec67b1ccd5744d97e4

Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>

-3
-1
arch/m32r/boot/compressed/Makefile
··· 6 6 7 7 targets := vmlinux vmlinux.bin vmlinux.bin.gz head.o misc.o \ 8 8 piggy.o vmlinux.lds 9 - EXTRA_AFLAGS := -traditional 10 9 11 10 OBJECTS = $(obj)/head.o $(obj)/misc.o 12 11
-2
arch/m32r/kernel/Makefile
··· 9 9 10 10 obj-$(CONFIG_SMP) += smp.o smpboot.o 11 11 obj-$(CONFIG_MODULES) += module.o 12 - 13 - EXTRA_AFLAGS := -traditional