Skip to content

Commit ea82daf

Browse files
lucvoocmetcalf-tilera
authored andcommitted
tile: pass machine size to sparse
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, like issuing false warnings like: 'constant ... is so big it is unsigned long long' or 'shift too big (32) for type unsigned long' when the architecture is 64bit while sparse was compiled on a 32bit machine, or worse, to not emit legitimate warnings in the reverse situation. Fix this by passing to sparse the appropriate -m32/-m64 flag. To: Chris Metcalf <cmetcalf@mellanox.com> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Signed-off-by: Chris Metcalf <cmetcalf@mellanox.com>
1 parent 8a5776a commit ea82daf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

arch/tile/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ else
5151
BITS := 32
5252
endif
5353

54+
CHECKFLAGS += -m$(BITS)
55+
5456
head-y := arch/tile/kernel/head_$(BITS).o
5557

5658
libs-y += arch/tile/lib/

0 commit comments

Comments
 (0)