diff mbox

x86: Mark up large pm4/5 constants with UL

Message ID 20180427091026.18683-1-chris@chris-wilson.co.uk (mailing list archive)
State New, archived
Headers show

Commit Message

Chris Wilson April 27, 2018, 9:10 a.m. UTC
To silence sparse while maintaining compatibility with the assembly, use
_UL which conditionally only appends the UL suffix for C code.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 arch/x86/include/asm/pgtable_64_types.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

Chris Wilson April 27, 2018, 11:04 a.m. UTC | #1
Quoting Patchwork (2018-04-27 11:54:51)
> == Series Details ==
> 
> Series: x86: Mark up large pm4/5 constants with UL
> URL   : https://patchwork.freedesktop.org/series/42387/
> State : warning
> 
> == Summary ==
> 
> $ dim sparse origin/drm-tip
> Commit: x86: Mark up large pm4/5 constants with UL
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is so big it is unsigned long
> -./arch/x86/include/asm/pgalloc.h:115:31: warning: constant 0xffffea0000000000 is s

Do we eventually see a '+'?
-Chris
diff mbox

Patch

diff --git a/arch/x86/include/asm/pgtable_64_types.h b/arch/x86/include/asm/pgtable_64_types.h
index d5c21a382475..40caf5eb9c18 100644
--- a/arch/x86/include/asm/pgtable_64_types.h
+++ b/arch/x86/include/asm/pgtable_64_types.h
@@ -105,14 +105,14 @@  extern unsigned int ptrs_per_p4d;
 #define LDT_PGD_ENTRY		(pgtable_l5_enabled ? LDT_PGD_ENTRY_L5 : LDT_PGD_ENTRY_L4)
 #define LDT_BASE_ADDR		(LDT_PGD_ENTRY << PGDIR_SHIFT)
 
-#define __VMALLOC_BASE_L4	0xffffc90000000000
-#define __VMALLOC_BASE_L5 	0xffa0000000000000
+#define __VMALLOC_BASE_L4	_UL(0xffffc90000000000)
+#define __VMALLOC_BASE_L5 	_UL(0xffa0000000000000)
 
 #define VMALLOC_SIZE_TB_L4	32UL
 #define VMALLOC_SIZE_TB_L5	12800UL
 
-#define __VMEMMAP_BASE_L4	0xffffea0000000000
-#define __VMEMMAP_BASE_L5	0xffd4000000000000
+#define __VMEMMAP_BASE_L4	_UL(0xffffea0000000000)
+#define __VMEMMAP_BASE_L5	_UL(0xffd4000000000000)
 
 #ifdef CONFIG_DYNAMIC_MEMORY_LAYOUT
 # define VMALLOC_START		vmalloc_base