提交 f24ae12b 编写于 作者: A Atsushi Nemoto 提交者: Ralf Baechle

[MIPS] Workaround for a sparse warning in include/asm-mips/mach-tx4927/ioremap.h

include2/asm/mach-tx49xx/ioremap.h:39:52: warning: cast truncates bits from constant value (fff000000 becomes ff000000)
Signed-off-by: NAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 e1bb8289
...@@ -36,7 +36,8 @@ static inline void __iomem *plat_ioremap(phys_t offset, unsigned long size, ...@@ -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) 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 */ #endif /* __ASM_MACH_TX49XX_IOREMAP_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册