In a patchset reviewing, Arnd suggested removing arch specific ioremap_uc() and using default one defined in asm-generic/io.h instead, other than x86 and ia64. Please see below link for more details: https://lore.kernel.org/all/056cc71f-7fb9-4d38-a442-a05de6f7d437@xxxxxxxxxxxxxxxx/T/#u And Arnd also provided an old link where people earlier discussed this. https://lore.kernel.org/all/20191111192258.2234502-1-arnd@xxxxxxxx/ So in this patchset, I firstly add including asm-generic/io.h for mips, then remove all arch specific ioremap_uc() definitions, except of x86 ans ia64. With the removing, those ARCH-es will have default ioremap_uc() defined in asm-generic/io.h. Baoquan He (2): mips: add <asm-generic/io.h> including arch/*/io.h: remove ioremap_uc in some architectures arch/alpha/include/asm/io.h | 1 - arch/hexagon/include/asm/io.h | 3 --- arch/m68k/include/asm/kmap.h | 1 - arch/mips/include/asm/io.h | 47 +++++++++++++++++++++++++++++++++- arch/mips/include/asm/mmiowb.h | 2 -- arch/parisc/include/asm/io.h | 2 -- arch/powerpc/include/asm/io.h | 1 - arch/sh/include/asm/io.h | 2 -- arch/sparc/include/asm/io_64.h | 1 - 9 files changed, 46 insertions(+), 14 deletions(-) -- 2.34.1