* [PATCH] mm/init.c: fix compilation warning
@ 2011-01-14 7:10 Viresh Kumar
2011-01-14 8:35 ` Russell King - ARM Linux
0 siblings, 1 reply; 3+ messages in thread
From: Viresh Kumar @ 2011-01-14 7:10 UTC (permalink / raw)
To: linux-arm-kernel
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 <viresh.kumar@st.com>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] mm/init.c: fix compilation warning
2011-01-14 7:10 [PATCH] mm/init.c: fix compilation warning Viresh Kumar
@ 2011-01-14 8:35 ` Russell King - ARM Linux
2011-01-14 8:44 ` viresh kumar
0 siblings, 1 reply; 3+ messages in thread
From: Russell King - ARM Linux @ 2011-01-14 8:35 UTC (permalink / raw)
To: linux-arm-kernel
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] mm/init.c: fix compilation warning
2011-01-14 8:35 ` Russell King - ARM Linux
@ 2011-01-14 8:44 ` viresh kumar
0 siblings, 0 replies; 3+ messages in thread
From: viresh kumar @ 2011-01-14 8:44 UTC (permalink / raw)
To: linux-arm-kernel
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:
>> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-01-14 8:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-14 7:10 [PATCH] mm/init.c: fix compilation warning Viresh Kumar
2011-01-14 8:35 ` Russell King - ARM Linux
2011-01-14 8:44 ` viresh kumar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).