]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
arch: rely on asm-generic/io.h for default ioremap_* definitions
authorChristoph Hellwig <hch@lst.de>
Wed, 16 Oct 2019 06:09:38 +0000 (08:09 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 11 Nov 2019 20:18:19 +0000 (21:18 +0100)
commitd092a87073269677b7ff09e71a8d91912b7f969a
treee86ed34b3710397845f249bf12ff9ef88463df20
parent97c9801a15e5b0c9a20e495b2ccabf010894e74b
arch: rely on asm-generic/io.h for default ioremap_* definitions

Various architectures that use asm-generic/io.h still defined their
own default versions of ioremap_nocache, ioremap_wt and ioremap_wc
that point back to plain ioremap directly or indirectly.  Remove these
definitions and rely on asm-generic/io.h instead.  For this to work
the backup ioremap_* defintions needs to be changed to purely cpp
macros instea of inlines to cover for architectures like openrisc
that only define ioremap after including <asm-generic/io.h>.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Palmer Dabbelt <palmer@dabbelt.com>
13 files changed:
arch/arc/include/asm/io.h
arch/arm/include/asm/io.h
arch/arm64/include/asm/io.h
arch/csky/include/asm/io.h
arch/ia64/include/asm/io.h
arch/microblaze/include/asm/io.h
arch/nios2/include/asm/io.h
arch/openrisc/include/asm/io.h
arch/riscv/include/asm/io.h
arch/s390/include/asm/io.h
arch/x86/include/asm/io.h
arch/xtensa/include/asm/io.h
include/asm-generic/io.h