]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MIPS] Workaround for a sparse warning in include/asm-mips/mach-tx4927/ioremap.h
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Fri, 13 Jul 2007 15:06:44 +0000 (00:06 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 13 Jul 2007 16:40:01 +0000 (17:40 +0100)
include2/asm/mach-tx49xx/ioremap.h:39:52: warning: cast truncates bits from constant value (fff000000 becomes ff000000)

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/mach-tx49xx/ioremap.h

index 88cf546719b8f74ddec13ba9754176e7d14291fa..1e7beae7222980f2865d2b00f13dbfa3574e2f00 100644 (file)
@@ -36,7 +36,8 @@ static inline void __iomem *plat_ioremap(phys_t offset, unsigned long size,
 
 static inline int plat_iounmap(const volatile void __iomem *addr)
 {
-       return (unsigned long)addr >= (unsigned long)(int)TXX9_DIRECTMAP_BASE;
+       return (unsigned long)addr >=
+               (unsigned long)(int)(TXX9_DIRECTMAP_BASE & 0xffffffff);
 }
 
 #endif /* __ASM_MACH_TX49XX_IOREMAP_H */