Răsfoiți Sursa

[MIPS] Add 'const' to readb and friends

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

---

Atsushi Nemoto 19 ani în urmă
părinte
comite
b887d3f2c6
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      include/asm-mips/io.h

+ 1 - 1
include/asm-mips/io.h

@@ -342,7 +342,7 @@ static inline void pfx##write##bwlq(type val,				\
 		BUG();							\
 }									\
 									\
-static inline type pfx##read##bwlq(volatile void __iomem *mem)		\
+static inline type pfx##read##bwlq(const volatile void __iomem *mem)	\
 {									\
 	volatile type *__mem;						\
 	type __val;							\