powerpc: mark 64-bit PD_HUGE constant as unsigned long
commitd456f3529a7a980ca7410c62e9e3496d828858f2
authorDaniel Axtens <dja@axtens.net>
Tue, 6 Nov 2018 14:48:03 +0000 (7 01:48 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 25 Nov 2018 06:11:22 +0000 (25 17:11 +1100)
treeb4a8f140c631d4c88512c20dbdf353536858b432
parentc516886f8437b85489d06115c54761880c7d67ac
powerpc: mark 64-bit PD_HUGE constant as unsigned long

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@axtens.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/page.h