mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 09:09:55 -04:00
[MIPS] Sparse: fix sparse for 64-bit kernels.
This commit breaks sparse for 64bit kernel. The -m64 option is
required. Also, some macro values (such as _MIPS_TUNE, etc.) contain
double-quote characters so it would be better quoting arguments by
single-quote characters.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
committed by
Ralf Baechle
parent
6f8782c4b2
commit
2a2c3e4519
@@ -615,7 +615,10 @@ LDFLAGS += -m $(ld-emul)
|
||||
ifdef CONFIG_MIPS
|
||||
CHECKFLAGS += $(shell $(CC) $(CFLAGS) -dM -E -xc /dev/null | \
|
||||
egrep -vw '__GNUC_(MAJOR|MINOR|PATCHLEVEL)__' | \
|
||||
sed -e 's/^\#define /-D/' -e 's/ /="/' -e 's/$$/"/')
|
||||
sed -e 's/^\#define /-D/' -e "s/ /='/" -e "s/$$/'/")
|
||||
ifdef CONFIG_64BIT
|
||||
CHECKFLAGS += -m64
|
||||
endif
|
||||
endif
|
||||
|
||||
OBJCOPYFLAGS += --remove-section=.reginfo
|
||||
|
||||
Reference in New Issue
Block a user