openrisc: add ioremap_nocache declaration before include asm-generic/io.h and sync...
authorGreentime Hu <greentime@andestech.com>
Fri, 22 Dec 2017 14:18:40 +0000 (22:18 +0800)
committerGreentime Hu <greentime@andestech.com>
Thu, 22 Feb 2018 02:44:30 +0000 (10:44 +0800)
commitb934e8eb483354bbadf1eee0a54e9487f50d6c5b
tree0aa564fe5add49eff22fc19feb898015534c142d
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2
openrisc: add ioremap_nocache declaration before include asm-generic/io.h and sync ioremap prototype with it.

A future commit for the nds32 architecture bootstrap("asm-generic/io.h: move
ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef CONFIG_MMU")
will move the ioremap_nocache out of the CONFIG_MMU ifdef. This means that
in order to suppress re-definition errors we need to setup #define's before
importing asm-generic/io.h.

Also, the change adds a prototype for ioremap where size is size_t so fix that
as well.

Signed-off-by: Greentime Hu <greentime@andestech.com>
Acked-by: Stafford Horne <shorne@gmail.com>
arch/openrisc/include/asm/io.h