powerpc: mark 64-bit PD_HUGE constant as unsigned long

Michael Ellerman patch-notifications at ellerman.id.au
Tue Nov 27 20:22:25 AEDT 2018


On Tue, 2018-11-06 at 14:48:03 UTC, Daniel Axtens wrote:
> When compiled for 64-bit, the PD_HUGE constant is a 64-bit integer.
> Mark it as an unsigned long.
> 
> This squashes over a thousand sparse warnings on my minimal T4240RDB
> (e6500, ppc64be) config, of the following 2 forms:
> 
> arch/powerpc/include/asm/hugetlb.h:52:49: warning: constant 0x8000000000000000 is so big it is unsigned long
> arch/powerpc/include/asm/nohash/pgtable.h:269:49: warning: constant 0x8000000000000000 is so big it is unsigned long
> 
> Signed-off-by: Daniel Axtens <dja at axtens.net>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/d456f3529a7a980ca7410c62e9e349

cheers


More information about the Linuxppc-dev mailing list