summaryrefslogtreecommitdiffstats
path: root/arch/alpha
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-05-30 22:48:38 +0200
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-06-01 11:36:58 +0900
commit1f2f01b122d7c78a9e842a126ef168afb279552b (patch)
tree1b1732ed86d8ff44efe1ee7812b26ee1741939b3 /arch/alpha
parent145167650b96967d6b726efef978c74831e6b2bd (diff)
downloadlinux-0-day-1f2f01b122d7c78a9e842a126ef168afb279552b.tar.gz
linux-0-day-1f2f01b122d7c78a9e842a126ef168afb279552b.tar.xz
kbuild: add machine size to CHECKFLAGS
By default, sparse assumes a 64bit machine when compiled on x86-64 and 32bit when compiled on anything else. This can of course create all sort of problems for the other archs, like issuing false warnings ('shift too big (32) for type unsigned long'), or worse, failing to emit legitimate warnings. Fix this by adding the -m32/-m64 flag, depending on CONFIG_64BIT, to CHECKFLAGS in the main Makefile (and so for all archs). Also, remove the now unneeded -m32/-m64 in arch specific Makefiles. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/alpha')
-rw-r--r--arch/alpha/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/alpha/Makefile b/arch/alpha/Makefile
index 2cc3cc519c549..c5ec8c09c0c6e 100644
--- a/arch/alpha/Makefile
+++ b/arch/alpha/Makefile
@@ -11,7 +11,7 @@
NM := $(NM) -B
LDFLAGS_vmlinux := -static -N #-relax
-CHECKFLAGS += -D__alpha__ -m64
+CHECKFLAGS += -D__alpha__
cflags-y := -pipe -mno-fp-regs -ffixed-8
cflags-y += $(call cc-option, -fno-jump-tables)