]> git.karo-electronics.de Git - karo-tx-linux.git/commit
arm64: pass machine size to sparse
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Tue, 20 Jun 2017 12:24:43 +0000 (14:24 +0200)
committerWill Deacon <will.deacon@arm.com>
Tue, 20 Jun 2017 15:47:16 +0000 (16:47 +0100)
commitf5d284900c0f960e318a063f4c40826b6e3aa6a8
treecfb7257de6e9e994724e88a3bccabcda1a50890f
parentbb4322f74340de578bc61ed0cfb9690ddeb9ef76
arm64: pass machine size to sparse

When using sparse on the arm64 tree we get many thousands of
warnings like 'constant ... is so big it is unsigned long long'
or 'shift too big (32) for type unsigned long'. This happens
because by default sparse considers the machine as 32bit and
defines the size of the types accordingly.

Fix this by passing the '-m64' flag to sparse so that
sparse can correctly define longs as being 64bit.

CC: Catalin Marinas <catalin.marinas@arm.com>
CC: Will Deacon <will.deacon@arm.com>
CC: linux-arm-kernel@lists.infradead.org
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/Makefile