linux-mips
[Top] [All Lists]

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

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH 2/2] ar7: fix build warning on memory.c
From: Florian Fainelli <florian@openwrt.org>
Date: Tue, 21 Jul 2009 12:38:10 +0200
Cc: linux-mips@linux-mips.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:date:subject :mime-version:x-uid:x-length:to:cc:content-type :content-transfer-encoding:content-disposition:message-id; bh=DWrGsgTvtEHU82X89bEX8b00faKFRvmE9sbvMADAT6U=; b=Wu/DFhJ3ovvYHx6+2PNCowoHoSHtJgGMc44h7HIylmRjWMLZyC57sYMT2PfkogwCJU aVLUkTmMjKbG7laQa/LHNg5FsHOaDBmCaj4B0UDRxjUXrlJ7vK6DQL0liTa9NvhbnoR2 TSLysV0Oh4eEV+5l8nEf8MtBzGRXH86lM0Cl8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:date:subject:mime-version:x-uid:x-length:to:cc :content-type:content-transfer-encoding:content-disposition :message-id; b=W9PjZD8x60bEg/pn54bzIqadpeLXHbPSlhyv9zbSfOiuAyUVq2E1tp2pJ8IMr3d7MD 70XgushGV90vbIpyUfxeA/c+azHC3CabGR8F5KZNJWxJcnWKhEPFRsn0f7zmlE8fCLRZ DIsbN0pF+PP2z2SGVbr37D90fEVVmT6toO5fk=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
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;
 }

<Prev in Thread] Current Thread [Next in Thread>