[PATCH] arm: fix sparse flags for build on 64bit machines

Stephen Boyd sboyd at codeaurora.org
Wed Jul 26 11:26:49 PDT 2017


On 07/26/2017 01:43 AM, Luc Van Oostenryck wrote:
> 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 at codeaurora.org>
> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck at gmail.com>

Tested-by: Stephen Boyd <sboyd at codeaurora.org>

Thanks.

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project




More information about the linux-arm-kernel mailing list