瀏覽代碼

Fix a few build warnings.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle 20 年之前
父節點
當前提交
ecba36dad8
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      include/asm-mips/io.h

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

@@ -451,10 +451,10 @@ static inline void reads##bwlq(volatile void __iomem *mem, void *addr,	\
 
 #define __BUILD_IOPORT_STRING(bwlq, type)				\
 									\
-static inline void outs##bwlq(unsigned long port, void *addr,		\
+static inline void outs##bwlq(unsigned long port, const void *addr,	\
 			      unsigned int count)			\
 {									\
-	volatile type *__addr = addr;					\
+	const volatile type *__addr = addr;				\
 									\
 	while (count--) {						\
 		mem_out##bwlq(*__addr, port);				\