Skip to contentSkip to conversation

sparc32: avoid build warning at mm/percpu.c:1647

PATCH Applied Sam Ravnborg 3 participants 4 messages Apr 21, 2011 – Apr 22, 2011 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 sparc32: avoid build warning at mm/percpu.c:1647

Fix following warning:

mm/percpu.c: In function 'pcpu_embed_first_chunk':
mm/percpu.c:1647:3: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'unsigned int'

[sam: added warning message to changelog, use _AC()]

---

Use _AC() as pointed out.
Build tested.

Sam

arch/sparc/include/asm/pgtable_32.h +4 -2
index 303bd4d..5b31a8e 100644
@@ -8,6 +8,8 @@
  *  Copyright (C) 1998 Jakub Jelinek ([email protected])
  */
 
+#include <linux/const.h>
+
 #ifndef __ASSEMBLY__
 #include <asm-generic/4level-fixup.h>
 
@@ -456,9 +458,9 @@ extern int io_remap_pfn_range(struct vm_area_struct *vma,
 
 #endif /* !(__ASSEMBLY__) */
 
-#define VMALLOC_START           0xfe600000
+#define VMALLOC_START           _AC(0xfe600000,UL)
 /* XXX Alter this when I get around to fixing sun4c - Anton */
-#define VMALLOC_END             0xffc00000
+#define VMALLOC_END             _AC(0xffc00000,UL)
 
 
 /* We provide our own get_unmapped_area to cope with VA holes for userland */
maintainer Applied
#1 lore raw

Re: [PATCH revised v2] sparc32: avoid build warning at

From: Sam Ravnborg <[email protected]>
Date: Thu, 21 Apr 2011 20:35:56 +0200

Quoted 8 lines

Fix following warning:

mm/percpu.c: In function 'pcpu_embed_first_chunk':
mm/percpu.c:1647:3: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'unsigned int'

[sam: added warning message to changelog, use _AC()]

Applied to sparc-next-2.6, thanks.

#2 lore raw

Re: [PATCH revised v2] sparc32: avoid build warning at

In reply to Sam Ravnborg
Quoted 5 lines · David Miller

From: Sam Ravnborg <[email protected]>
Date: Thu, 21 Apr 2011 20:35:56 +0200

Quoted 2 lines

Fix following warning:

Quoted 8 lines
Quoted 6 lines

mm/percpu.c: In function 'pcpu_embed_first_chunk':
mm/percpu.c:1647:3: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'unsigned int'

[sam: added warning message to changelog, use _AC()]

Applied to sparc-next-2.6, thanks.

I screwed up author-ship on this one - Daniel was the original author. But I guess Daniel and I can fix this over a beer if we meet someday. Will try to be more carefull in the future!

Sam

#3 lore raw
In reply to Sam Ravnborg
Quoted 18 lines · Sam Ravnborg
Quoted 15 lines · David Miller

From: Sam Ravnborg <[email protected]>
Date: Thu, 21 Apr 2011 20:35:56 +0200

Quoted 10 lines

Fix following warning:

mm/percpu.c: In function 'pcpu_embed_first_chunk':
mm/percpu.c:1647:3: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'unsigned int'

[sam: added warning message to changelog, use _AC()]
Quoted 9 lines
Quoted 3 lines

Applied to sparc-next-2.6, thanks.

I screwed up author-ship on this one - Daniel was the original author. But I guess Daniel and I can fix this over a beer if we meet someday. Will try to be more carefull in the future!

I think we have to meet in Germany in order to get a big beer enough to compensate for that... :) by the way thanks for cleaning up the patch for me.

Daniel