public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sh: fix readsl/writesl argument
@ 2008-02-20 10:28 Magnus Damm
  2008-02-20 12:15 ` Stuart MENEFY
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Magnus Damm @ 2008-02-20 10:28 UTC (permalink / raw)
  To: linux-sh

writesl() and readsl() use void __iomem * as argument but the current sh 
version of __raw_writesl()/__rawreadsl() takes unsigned long. Casting the
pointer fixes smc91x warnings.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
---

 include/asm-sh/io.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- 0001/include/asm-sh/io.h
+++ work/include/asm-sh/io.h	2008-02-20 16:34:28.000000000 +0900
@@ -162,8 +162,8 @@ static inline void reads##bwlq(volatile 
 
 __BUILD_MEMORY_STRING(b, u8)
 __BUILD_MEMORY_STRING(w, u16)
-#define writesl __raw_writesl
-#define readsl  __raw_readsl
+#define writesl(m, a, c) __raw_writesl((unsigned long)(m), (a), (c))
+#define readsl(m, a, c)  __raw_readsl((unsigned long)(m), (a), (c))
 
 #define readb_relaxed(a) readb(a)
 #define readw_relaxed(a) readw(a)

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

end of thread, other threads:[~2008-02-26  6:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-20 10:28 [PATCH] sh: fix readsl/writesl argument Magnus Damm
2008-02-20 12:15 ` Stuart MENEFY
2008-02-21  2:57 ` Magnus Damm
2008-02-26  5:23 ` Paul Mundt
2008-02-26  6:39 ` Magnus Damm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox