]> err.no Git - linux-2.6/commitdiff
Fix a few build warnings.
authorRalf Baechle <ralf@linux-mips.org>
Mon, 18 Apr 2005 14:54:43 +0000 (14:54 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 29 Oct 2005 18:31:09 +0000 (19:31 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/io.h

index cee0562a7851a945abe6a299ac24c8ac52dab415..3b4d97d80643c67b9b538c0ecaff46a3247f8b2c 100644 (file)
@@ -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);                           \