* [PATCH] x86_64: use UL on large MODULE_addr constants
@ 2005-01-23 6:54 Randy.Dunlap
0 siblings, 0 replies; only message in thread
From: Randy.Dunlap @ 2005-01-23 6:54 UTC (permalink / raw)
To: lkml; +Cc: ak, akpm
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@osdl.org>
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
--
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-23 7:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-23 6:54 [PATCH] x86_64: use UL on large MODULE_addr constants Randy.Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®