From: "Randy.Dunlap" <rddunlap@osdl.org>
To: lkml <linux-kernel@vger.kernel.org>
Cc: akpm <akpm@osdl.org>, viro <viro@parcelfarce.linux.theplanet.co.uk>
Subject: [PATCH] procfs: fix printk arg type warning
Date: Wed, 2 Mar 2005 21:48:28 -0800 [thread overview]
Message-ID: <20050302214828.5ff52893.rddunlap@osdl.org> (raw)
On sparc32 build, there is a printk format arg-type warning:
fs/proc/proc_misc.c:195: warning: long unsigned int format, unsigned int arg (arg 23)
I tried to fix it with a change to asm-sparc/vaddrs.h:
-#define VMALLOC_START 0xfe600000
+#define VMALLOC_START 0xfe600000UL
-#define VMALLOC_END 0xffc00000
+#define VMALLOC_END 0xffc00000UL
but that won't fly because the #defines are used in asm code
and asm doesn't like the UL suffixes (reported by Bill Irwin).
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
diffstat:=
fs/proc/proc_misc.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -Naurp ./fs/proc/proc_misc.c~proc_misc_printk ./fs/proc/proc_misc.c
--- ./fs/proc/proc_misc.c~proc_misc_printk 2005-03-01 23:37:49.000000000 -0800
+++ ./fs/proc/proc_misc.c 2005-03-02 20:47:33.305279976 -0800
@@ -189,7 +189,7 @@ static int meminfo_read_proc(char *page,
K(allowed),
K(committed),
K(ps.nr_page_table_pages),
- VMALLOC_TOTAL >> 10,
+ (unsigned long)VMALLOC_TOTAL >> 10,
vmi.used >> 10,
vmi.largest_chunk >> 10
);
---
reply other threads:[~2005-03-03 6:18 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=20050302214828.5ff52893.rddunlap@osdl.org \
--to=rddunlap@osdl.org \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@parcelfarce.linux.theplanet.co.uk \
/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®