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

[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: NAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 9815778a
...@@ -212,7 +212,8 @@ static inline void __iomem * __ioremap_mode(phys_t offset, unsigned long size, ...@@ -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) && if (__IS_LOW512(phys_addr) && __IS_LOW512(last_addr) &&
flags == _CACHE_UNCACHED) flags == _CACHE_UNCACHED)
return (void __iomem *)CKSEG1ADDR(phys_addr); return (void __iomem *)
(unsigned long)CKSEG1ADDR(phys_addr);
} }
return __ioremap(offset, size, flags); return __ioremap(offset, size, flags);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册