linux-mips
[Top] [All Lists]

[PATCH] add 'const' to readb and friends

To: linux-mips@linux-mips.org
Subject: [PATCH] add 'const' to readb and friends
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Thu, 09 Feb 2006 00:57:44 +0900 (JST)
Cc: ralf@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>

diff --git a/include/asm-mips/io.h b/include/asm-mips/io.h
index c16d54f..0ec40f9 100644
--- a/include/asm-mips/io.h
+++ b/include/asm-mips/io.h
@@ -342,7 +342,7 @@ static inline void pfx##write##bwlq(type
                BUG();                                                  \
 }                                                                      \
                                                                        \
-static inline type pfx##read##bwlq(volatile void __iomem *mem)         \
+static inline type pfx##read##bwlq(const volatile void __iomem *mem)   \
 {                                                                      \
        volatile type *__mem;                                           \
        type __val;                                                     \

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