linux_dsm_epyc7002/arch
Luc Van Oostenryck 1f2f01b122 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>
2018-06-01 11:36:58 +09:00
..
alpha kbuild: add machine size to CHECKFLAGS 2018-06-01 11:36:58 +09:00
arc
arm kbuild: add machine size to CHECKFLAGS 2018-06-01 11:36:58 +09:00
arm64 kbuild: add machine size to CHECKFLAGS 2018-06-01 11:36:58 +09:00
c6x c6x: pass endianness info to sparse 2018-04-10 09:58:58 -04:00
h8300
hexagon hexagon: export csum_partial_copy_nocheck 2018-05-01 15:49:50 -05:00
ia64 kbuild: add machine size to CHECKFLAGS 2018-06-01 11:36:58 +09:00
m68k Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu 2018-04-09 09:15:46 -07:00
microblaze Microblaze patches for 4.17-rc1 2018-04-12 10:18:02 -07:00
mips kbuild: add machine size to CHECKFLAGS 2018-06-01 11:36:58 +09:00
nds32 page cache: use xa_lock 2018-04-11 10:28:39 -07:00
nios2 nios2 update for v4.17-rc1 2018-04-11 16:02:18 -07:00
openrisc kbuild: add endianness flag to CHEKCFLAGS 2018-05-29 22:05:08 +09:00
parisc kbuild: add machine size to CHECKFLAGS 2018-06-01 11:36:58 +09:00
powerpc powerpc: Allow LD_DEAD_CODE_DATA_ELIMINATION to be selected 2018-05-17 22:45:01 +09:00
riscv RISC-V: build vdso-dummy.o with -no-pie 2018-04-24 10:54:46 -07:00
s390 kbuild: add endianness flag to CHEKCFLAGS 2018-05-29 22:05:08 +09:00
sh Merge branch 'akpm' (patches from Andrew) 2018-04-14 08:50:50 -07:00
sparc kbuild: add machine size to CHECKFLAGS 2018-06-01 11:36:58 +09:00
um Merge git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml 2018-04-11 16:36:47 -07:00
unicore32 unicore32: turn flush_dcache_mmap_lock into a no-op 2018-04-11 10:28:39 -07:00
x86 kbuild: add machine size to CHECKFLAGS 2018-06-01 11:36:58 +09:00
xtensa mm: introduce MAP_FIXED_NOREPLACE 2018-04-11 10:28:38 -07:00
.gitignore
Kconfig kbuild: Allow LD_DEAD_CODE_DATA_ELIMINATION to be selectable if enabled 2018-05-17 22:45:01 +09:00