Skip to content

Commit

Permalink
[MIPS] Add const qualifier to writes##bwlq.
Browse files Browse the repository at this point in the history
    
Add const qualifier to parameter addr of writes##bwlq.
    
Signed-off-by: Arnaud Giersch <[email protected]>
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
agiersch authored and ralfbaechle committed Nov 17, 2005
1 parent 59f145d commit 99289a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/asm-mips/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -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); \
Expand Down

0 comments on commit 99289a4

Please sign in to comment.