[PATCH] x86_64: use UL on large MODULE_addr constants

From: Randy.Dunlap
Date: Sun Jan 23 2005 - 02:11:16 EST



Use UL on large constants, to kill sparse warnings (5 of each):

arch/x86_64/kernel/time.c:198:18: warning: constant 0xffffffff88000000 is so big it is unsigned long
arch/x86_64/kernel/time.c:198:49: warning: constant 0xfffffffffff00000 is so big it is unsigned long

Signed-off-by: Randy Dunlap <rddunlap@xxxxxxxx>

diffstat:=
include/asm-x86_64/pgtable.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff -Naurp ./include/asm-x86_64/pgtable.h~module_addr_long ./include/asm-x86_64/pgtable.h
--- ./include/asm-x86_64/pgtable.h~module_addr_long 2005-01-22 19:06:33.765150024 -0800
+++ ./include/asm-x86_64/pgtable.h 2005-01-22 21:40:33.487498720 -0800
@@ -119,8 +119,8 @@ extern inline void pgd_clear (pgd_t * pg
#define MAXMEM 0x3fffffffffffUL
#define VMALLOC_START 0xffffc20000000000UL
#define VMALLOC_END 0xffffe1ffffffffffUL
-#define MODULES_VADDR 0xffffffff88000000
-#define MODULES_END 0xfffffffffff00000
+#define MODULES_VADDR 0xffffffff88000000UL
+#define MODULES_END 0xfffffffffff00000UL
#define MODULES_LEN (MODULES_END - MODULES_VADDR)

#define _PAGE_BIT_PRESENT 0

--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/