Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Arnaud Giersch and committed by
Ralf Baechle
99289a4e 59f145d2

+3 -3
+3 -3
include/asm-mips/io.h
··· 459 459 460 460 #define __BUILD_MEMORY_STRING(bwlq, type) \ 461 461 \ 462 - static inline void writes##bwlq(volatile void __iomem *mem, void *addr, \ 463 - unsigned int count) \ 462 + static inline void writes##bwlq(volatile void __iomem *mem, \ 463 + const void *addr, unsigned int count) \ 464 464 { \ 465 - volatile type *__addr = addr; \ 465 + const volatile type *__addr = addr; \ 466 466 \ 467 467 while (count--) { \ 468 468 mem_write##bwlq(*__addr, mem); \