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 <[EMAIL PROTECTED]>

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
                );

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

Reply via email to