提交 99289a4e 编写于 作者: A Arnaud Giersch 提交者: Ralf Baechle

[MIPS] Add const qualifier to writes##bwlq.

    
Add const qualifier to parameter addr of writes##bwlq.
Signed-off-by: NArnaud Giersch <arnaud.giersch@free.fr>
Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 59f145d2
......@@ -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); \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册