]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8701/1: fix sparse flags for build on 64bit machines
authorLuc Van Oostenryck II <luc.vanoostenryck@gmail.com>
Mon, 2 Oct 2017 19:33:35 +0000 (20:33 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 12 Oct 2017 10:18:19 +0000 (11:18 +0100)
commit2e2c576ac8cc2bf4254a4e26e1b08e7c34980624
tree85306a91c06d3168c20a469f2af00c8a6837e47b
parent9e2417575aaed13e505ca080ebe0b45211eadcb1
ARM: 8701/1: fix sparse flags for build on 64bit machines

By default sparse uses the characteristics of the build
machine to infer things like the wordsize.
This is fine when doing native builds but for ARM it's,
I suspect, very rarely the case and if the build are done
on a 64bit machine we get a bunch of warnings like:
  'cast truncates bits from constant value (... becomes ...)'

Fix this by adding the -m32 flags for sparse.

Reported-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/Makefile