Skip to contentSkip to conversation

procfs: fix printk format warning

PATCH In review Randy.Dunlap 2 participants 4 messages Mar 2, 2005 – Mar 3, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 procfs: fix printk format warning

sparc: fix printk format warning:
fs/proc/proc_misc.c:195: warning: long unsigned int format, unsigned int arg (arg 23)

diffstat: include/asm-sparc/vaddrs.h | 4 ++--

 1 files changed, 2 insertions(+), 2 deletions(-)
include/asm-sparc/vaddrs.h renamed from include/asm-sparc/vaddrs.h~proc_misc_printk +2 -2
diff -Naurp ./include/asm-sparc/vaddrs.h~proc_misc_printk ./include/asm-sparc/vaddrs.h
@@ -35,10 +35,10 @@
 #define IOBASE_VADDR		0xfe000000
 #define IOBASE_END		0xfe600000
 
-#define VMALLOC_START		0xfe600000
+#define VMALLOC_START		0xfe600000UL
 
 /* XXX Alter this when I get around to fixing sun4c - Anton */
-#define VMALLOC_END		0xffc00000
+#define VMALLOC_END		0xffc00000UL
 
 /*
  * On the sun4/4c we need a place

---

#1 lore raw
Quoted 5 lines · Randy.Dunlap

sparc: fix printk format warning:
fs/proc/proc_misc.c:195: warning: long unsigned int format, unsigned int arg (arg 23)

diffstat:> include/asm-sparc/vaddrs.h | 4 ++--

 1 files changed, 2 insertions(+), 2 deletions(-)

The UL qualifier can't be used directly as VMALLOC_START is used in assembly (check arch/sparc/kernel/entry.S).

-- wli

#2 lore raw
In reply to Randy.Dunlap
Quoted 11 lines · William Lee Irwin III
Quoted 5 lines · Randy.Dunlap

sparc: fix printk format warning:
fs/proc/proc_misc.c:195: warning: long unsigned int format, unsigned int arg (arg 23)

diffstat:>> include/asm-sparc/vaddrs.h | 4 ++--

1 files changed, 2 insertions(+), 2 deletions(-)

The UL qualifier can't be used directly as VMALLOC_START is used in assembly (check arch/sparc/kernel/entry.S).

Darn, that gives me some lack of confidence in my cross-build tools. Cross-build results are at:
https://www.osdl.org/plm-cgi/plm?module=patch_info&patch_idB38
and sparc build with this patch passed....

But I do trust that you know what you are talking about and that I probably have a toolchain problem.

Signature · 1 line
~Randy
#3 lore raw
In reply to Randy.Dunlap
Quoted 2 lines · William Lee Irwin III
Quoted 2 lines

The UL qualifier can't be used directly as VMALLOC_START is used in assembly (check arch/sparc/kernel/entry.S).

Quoted 6 lines · Randy.Dunlap

Darn, that gives me some lack of confidence in my cross-build tools. Cross-build results are at:
https://www.osdl.org/plm-cgi/plm?module=patch_info&patch_idB38
and sparc build with this patch passed....
But I do trust that you know what you are talking about and that I probably have a toolchain problem.

Okay, in that case, I wonder why it worked.

-- wli