Skip to contentSkip to conversation

mm/init.c: fix compilation warning

PATCH New Viresh Kumar 2 participants 3 messages Jan 14, 2011 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm/init.c: fix compilation warning

This patch fixes following warning:
mm/init.c:606: warning: format '%08lx' expects type 'long unsigned int', but argument 12 has type 'unsigned int'

---
 arch/arm/mm/init.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mm/init.c +1 -1
index 5164069..2d54070 100644
@@ -593,7 +593,7 @@ void __init mem_init(void)
 #ifdef CONFIG_MMU
 			MLM(CONSISTENT_BASE, CONSISTENT_END),
 #endif
-			MLM(VMALLOC_START, VMALLOC_END),
+			MLM(VMALLOC_START, (unsigned long) VMALLOC_END),
 			MLM(PAGE_OFFSET, (unsigned long)high_memory),
 #ifdef CONFIG_HIGHMEM
 			MLM(PKMAP_BASE, (PKMAP_BASE) + (LAST_PKMAP) *
Signature · 1 line
1.7.2.2
#1 lore raw

PATCH 1/1 mm/init.c: fix compilation warning

Quoted 3 lines · Viresh Kumar

This patch fixes following warning:
mm/init.c:606: warning: format '%08lx' expects type 'long unsigned int', but argument 12 has type 'unsigned int'

The problem is in your definition of VMALLOC_END. It should be typed unsigned long - so have a UL suffix on the number.

#2 lore raw

PATCH 1/1 mm/init.c: fix compilation warning

Quoted 8 lines · Russell King - ARM Linux
Quoted 3 lines · Viresh Kumar

This patch fixes following warning:
mm/init.c:606: warning: format '%08lx' expects type 'long unsigned int', but argument 12 has type 'unsigned int'

The problem is in your definition of VMALLOC_END. It should be typed unsigned long - so have a UL suffix on the number.

Ok. Will correct that.
thanks.

Signature · 1 line
viresh