[MIPS] Add const qualifier to writes##bwlq.
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>
This commit is contained in:
parent
59f145d28c
commit
99289a4e8a
1 changed files with 3 additions and 3 deletions
|
@ -459,10 +459,10 @@ __BUILDIO(q, u64)
|
||||||
|
|
||||||
#define __BUILD_MEMORY_STRING(bwlq, type) \
|
#define __BUILD_MEMORY_STRING(bwlq, type) \
|
||||||
\
|
\
|
||||||
static inline void writes##bwlq(volatile void __iomem *mem, void *addr, \
|
static inline void writes##bwlq(volatile void __iomem *mem, \
|
||||||
unsigned int count) \
|
const void *addr, unsigned int count) \
|
||||||
{ \
|
{ \
|
||||||
volatile type *__addr = addr; \
|
const volatile type *__addr = addr; \
|
||||||
\
|
\
|
||||||
while (count--) { \
|
while (count--) { \
|
||||||
mem_write##bwlq(*__addr, mem); \
|
mem_write##bwlq(*__addr, mem); \
|
||||||
|
|
Loading…
Reference in a new issue