[MIPS] Add const qualifier to writes##bwlq.
authorArnaud Giersch <arnaud.giersch@free.fr>
Sat, 12 Nov 2005 23:38:18 +0000 (00:38 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 17 Nov 2005 16:23:49 +0000 (16:23 +0000)
Add const qualifier to parameter addr of writes##bwlq.

Signed-off-by: Arnaud Giersch <arnaud.giersch@free.fr>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/io.h

index 3061870b7f6cae67d4e9e8e2eebe412ca8456539..d42685747e7d3f66d42bbd45d2d95ed718bfb1f9 100644 (file)
@@ -459,10 +459,10 @@ __BUILDIO(q, u64)
 
 #define __BUILD_MEMORY_STRING(bwlq, type)                              \
                                                                        \
-static inline void writes##bwlq(volatile void __iomem *mem, void *addr,        \
-                               unsigned int count)                     \
+static inline void writes##bwlq(volatile void __iomem *mem,            \
+                               const void *addr, unsigned int count)   \
 {                                                                      \
-       volatile type *__addr = addr;                                   \
+       const volatile type *__addr = addr;                             \
                                                                        \
        while (count--) {                                               \
                mem_write##bwlq(*__addr, mem);                          \