[PATCH 5.3 004/105] sparc64: implement ioremap_uc

From: Greg Kroah-Hartman
Date: Wed Dec 11 2019 - 10:11:31 EST

From: Tuowen Zhao <ztuowen@xxxxxxxxx>

commit 38e45d81d14e5f78cd67922596b1c37b4c22ec74 upstream.

On sparc64, the whole physical IO address space is accessible using
physically addressed loads and stores. *_uc does nothing like the

Cc: <stable@xxxxxxxxxxxxxxx> # v4.19+
Reported-by: kbuild test robot <lkp@xxxxxxxxx>
Signed-off-by: Tuowen Zhao <ztuowen@xxxxxxxxx>
Acked-by: David S. Miller <davem@xxxxxxxxxxxxx>
Signed-off-by: Lee Jones <lee.jones@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

arch/sparc/include/asm/io_64.h | 1 +
1 file changed, 1 insertion(+)

--- a/arch/sparc/include/asm/io_64.h
+++ b/arch/sparc/include/asm/io_64.h
@@ -407,6 +407,7 @@ static inline void __iomem *ioremap(unsi

#define ioremap_nocache(X,Y) ioremap((X),(Y))
+#define ioremap_uc(X,Y) ioremap((X),(Y))
#define ioremap_wc(X,Y) ioremap((X),(Y))
#define ioremap_wt(X,Y) ioremap((X),(Y))