[PATCH] mm/init.c: fix compilation warning

Subsystems: arm port, the rest

STALE5713d

3 messages, 2 authors, 2011-01-14 · open the first message on its own page

[PATCH] mm/init.c: fix compilation warning

From: Viresh Kumar <hidden>
Date: 2011-01-14 07:10:51

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

Signed-off-by: Viresh Kumar <redacted>
---
 arch/arm/mm/init.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c
index 5164069..2d54070 100644
--- a/arch/arm/mm/init.c
+++ b/arch/arm/mm/init.c
@@ -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) *
-- 
1.7.2.2

[PATCH] mm/init.c: fix compilation warning

From: Russell King - ARM Linux <hidden>
Date: 2011-01-14 08:35:24

On Fri, Jan 14, 2011 at 12:40:51PM +0530, Viresh Kumar wrote:
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.

[PATCH] mm/init.c: fix compilation warning

From: viresh kumar <hidden>
Date: 2011-01-14 08:44:49

On 01/14/2011 02:05 PM, Russell King - ARM Linux wrote:
On Fri, Jan 14, 2011 at 12:40:51PM +0530, Viresh Kumar wrote:
quoted
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.

-- 
viresh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help