diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2007-07-11 23:12:00 +0900 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-07-12 17:41:10 +0100 |
commit | c0cf500145b4154adcbc55afc1a63db24cee84a2 (patch) | |
tree | ab5ca7ffff7c809c8d8cf35e587de0bfabaa7162 /include/asm-mips | |
parent | 9815778ae016004c33ce267a00b7d567192ef6e7 (diff) | |
download | linux-c0cf500145b4154adcbc55afc1a63db24cee84a2.tar.bz2 |
[MIPS] Workaround for a sparse warning in include/asm-mips/io.h
CKSEG1ADDR() returns unsigned int value on 32bit kernel. Cast it to
unsigned long to get rid of this warning:
include2/asm/io.h:215:12: warning: cast adds address space to expression (<asn:2>)
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips')
-rw-r--r-- | include/asm-mips/io.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-mips/io.h b/include/asm-mips/io.h index 12bcc1f9fba9..7ba92890ea13 100644 --- a/include/asm-mips/io.h +++ b/include/asm-mips/io.h @@ -212,7 +212,8 @@ static inline void __iomem * __ioremap_mode(phys_t offset, unsigned long size, */ if (__IS_LOW512(phys_addr) && __IS_LOW512(last_addr) && flags == _CACHE_UNCACHED) - return (void __iomem *)CKSEG1ADDR(phys_addr); + return (void __iomem *) + (unsigned long)CKSEG1ADDR(phys_addr); } return __ioremap(offset, size, flags); |