All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] ar7: fix build warning on memory.c
@ 2009-07-21 10:38 Florian Fainelli
  2009-07-21 11:24 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Fainelli @ 2009-07-21 10:38 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips

This patch fixes the following build warning:
arch/mips/ar7/memory.c: In function 'memsize':
arch/mips/ar7/memory.c:55: warning: passing argument 1 of 'writel' makes integer from pointer without a cast

Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
diff --git a/arch/mips/ar7/memory.c b/arch/mips/ar7/memory.c
index 46fed44..696c723 100644
--- a/arch/mips/ar7/memory.c
+++ b/arch/mips/ar7/memory.c
@@ -52,7 +52,7 @@ static int __init memsize(void)
 		size <<= 1;
 	} while (size < (64 << 20));
 
-	writel(tmpaddr, &addr);
+	writel((u32)tmpaddr, &addr);
 
 	return size;
 }

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 2/2] ar7: fix build warning on memory.c
  2009-07-21 10:38 [PATCH 2/2] ar7: fix build warning on memory.c Florian Fainelli
@ 2009-07-21 11:24 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2009-07-21 11:24 UTC (permalink / raw)
  To: Florian Fainelli; +Cc: linux-mips

On Tue, Jul 21, 2009 at 12:38:10PM +0200, Florian Fainelli wrote:

Thanks, applied.

  Ralf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-21 11:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-21 10:38 [PATCH 2/2] ar7: fix build warning on memory.c Florian Fainelli
2009-07-21 11:24 ` Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.