* [PATCH] Add const qualifier to writes##bwlq
@ 2005-11-12 23:38 Arnaud Giersch
0 siblings, 0 replies; only message in thread
From: Arnaud Giersch @ 2005-11-12 23:38 UTC (permalink / raw)
To: ralf; +Cc: linux-mips
Add const qualifier to parameter addr of writes##bwlq.
Signed-off-by: Arnaud Giersch <arnaud.giersch@free.fr>
---
io.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/asm-mips/io.h b/include/asm-mips/io.h
--- a/include/asm-mips/io.h
+++ b/include/asm-mips/io.h
@@ -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); \
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-11-12 23:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-12 23:38 [PATCH] Add const qualifier to writes##bwlq Arnaud Giersch
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.