From: "Randy.Dunlap" <rddunlap@osdl.org>
To: lkml <linux-kernel@vger.kernel.org>
Cc: ak@suse.de, akpm <akpm@osdl.org>
Subject: [PATCH] x86_64: use UL on large MODULE_addr constants
Date: Sat, 22 Jan 2005 22:54:49 -0800 [thread overview]
Message-ID: <20050122225449.3d57c667.rddunlap@osdl.org> (raw)
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
--
reply other threads:[~2005-01-23 7:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050122225449.3d57c667.rddunlap@osdl.org \
--to=rddunlap@osdl.org \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®