From mboxrd@z Thu Jan 1 00:00:00 1970 From: sboyd@codeaurora.org (Stephen Boyd) Date: Fri, 29 Sep 2017 11:37:08 -0700 Subject: [PATCH] arm: fix sparse flags for build on 64bit machines In-Reply-To: <18b6d290-da61-c838-5d46-d4a81740bc16@codeaurora.org> References: <20170726013020.GL2146@codeaurora.org> <20170726084305.38537-1-luc.vanoostenryck@gmail.com> <18b6d290-da61-c838-5d46-d4a81740bc16@codeaurora.org> Message-ID: <20170929183708.GJ457@codeaurora.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 08/07, Stephen Boyd wrote: > On 07/26/2017 11:26 AM, Stephen Boyd wrote: > > 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 > >> Signed-off-by: Luc Van Oostenryck > > Tested-by: Stephen Boyd > > > > > > Russell, is this good to put in the patch tracker? > > > Luc, can you submit this via Russell's patch tracking system (see > http://www.arm.linux.org.uk/developer/patches/info.php)? > It's been a while, and this isn't in linux-next or the patch tracker from what I can tell. I'll forward it along if nothing happens in the next couple days. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project