Skip to contentSkip to conversation

ar7: fix build warning on memory.c

PATCH Applied Florian Fainelli 2 participants 2 messages Jul 21, 2009 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 ar7: fix build warning on memory.c

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

---

arch/mips/ar7/memory.c +1 -1
index 46fed44..696c723 100644
@@ -52,7 +52,7 @@ static int __init memsize(void)
 		size <<= 1;
 	} while (size < (64 << 20));
 
-	writel(tmpaddr, &addr);
+	writel((u32)tmpaddr, &addr);
 
 	return size;
 }
Applied
#1 lore raw

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

Thanks, applied.

Ralf