diff options
author | Aaro Koskinen <aaro.koskinen@iki.fi> | 2011-10-19 18:33:27 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-10-20 10:00:20 -0400 |
commit | 08fa624f504e5edab6f69014fc92ecc7b2bbd81e (patch) | |
tree | 1cfc2e3efe4edf3d37363ea3102675ee710d6856 /arch/mips | |
parent | 2fd431085cab7a5d0ae4fae91c85c5a05d6afaa0 (diff) |
MIPS: Fix build with C=1
When trying to compile the 3.1-rc10 kernel for my MIPS board with C=1
(sparse checking), the build fails early with the error:
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Checking missing-syscalls for N32
CALL scripts/checksyscalls.sh
Checking missing-syscalls for O32
CALL scripts/checksyscalls.sh
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/mips/kernel/asm-offsets.s
GEN include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
HOSTCC scripts/genksyms/genksyms.o
SHIPPED scripts/genksyms/lex.lex.c
SHIPPED scripts/genksyms/keywords.hash.c
SHIPPED scripts/genksyms/parse.tab.h
HOSTCC scripts/genksyms/lex.lex.o
SHIPPED scripts/genksyms/parse.tab.c
HOSTCC scripts/genksyms/parse.tab.o
HOSTLD scripts/genksyms/genksyms
/bin/sh: Syntax error: "(" unexpected
make[3]: *** [scripts/mod/empty.o] Error 2
make[2]: *** [scripts/mod] Error 2
make[1]: *** [scripts] Error 2
It seems the shell chokes because sparse is called with command line
arguments such as:
-D__INT8_C(c)='c'
Converting these to form:
-D'__INT8_C(c)'='c'
seems to fix the problem.
[ralf@linux-mips.org: This affects builds with gcc 4.5 and newer.]
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/2827/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index eede9b350803..9b4cb00407d7 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile | |||
@@ -226,7 +226,7 @@ LDFLAGS += -m $(ld-emul) | |||
226 | ifdef CONFIG_MIPS | 226 | ifdef CONFIG_MIPS |
227 | CHECKFLAGS += $(shell $(CC) $(KBUILD_CFLAGS) -dM -E -xc /dev/null | \ | 227 | CHECKFLAGS += $(shell $(CC) $(KBUILD_CFLAGS) -dM -E -xc /dev/null | \ |
228 | egrep -vw '__GNUC_(|MINOR_|PATCHLEVEL_)_' | \ | 228 | egrep -vw '__GNUC_(|MINOR_|PATCHLEVEL_)_' | \ |
229 | sed -e 's/^\#define /-D/' -e "s/ /='/" -e "s/$$/'/") | 229 | sed -e "s/^\#define /-D'/" -e "s/ /'='/" -e "s/$$/'/") |
230 | ifdef CONFIG_64BIT | 230 | ifdef CONFIG_64BIT |
231 | CHECKFLAGS += -m64 | 231 | CHECKFLAGS += -m64 |
232 | endif | 232 | endif |