Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99289a4e authored by Arnaud Giersch's avatar Arnaud Giersch Committed by Ralf Baechle
Browse files

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


    
Add const qualifier to parameter addr of writes##bwlq.
    
Signed-off-by: default avatarArnaud Giersch <arnaud.giersch@free.fr>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 59f145d2
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -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);				\