aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2019-02-22 12:25:29 -0500
committerWill Deacon <will.deacon@arm.com>2019-04-08 07:09:27 -0400
commit01e3b958efe85a26d9b1b77be3a0a1491bb4cb36 (patch)
treedde161b861aeb97f03a9b5b357d9ca61cdfb8f2c
parent96670b2fd0254a2c51cc2bb4b4f3057a6b6f5d29 (diff)
arch: Remove dummy mmiowb() definitions from arch code
Now that no driver code is using mmiowb() directly, remove the dummy definitions remaining in architectures that don't make use of asm-generic/io.h, as well as the definition in asm-generic/io.h itself. Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
-rw-r--r--arch/alpha/include/asm/io.h2
-rw-r--r--arch/hexagon/include/asm/io.h2
-rw-r--r--arch/parisc/include/asm/io.h2
-rw-r--r--arch/powerpc/include/asm/mmiowb.h2
-rw-r--r--arch/sparc/include/asm/io_64.h2
-rw-r--r--include/asm-generic/io.h4
6 files changed, 0 insertions, 14 deletions
diff --git a/arch/alpha/include/asm/io.h b/arch/alpha/include/asm/io.h
index 4c533fc94d62..ccf9d65166bb 100644
--- a/arch/alpha/include/asm/io.h
+++ b/arch/alpha/include/asm/io.h
@@ -513,8 +513,6 @@ extern inline void writeq(u64 b, volatile void __iomem *addr)
513#define writel_relaxed(b, addr) __raw_writel(b, addr) 513#define writel_relaxed(b, addr) __raw_writel(b, addr)
514#define writeq_relaxed(b, addr) __raw_writeq(b, addr) 514#define writeq_relaxed(b, addr) __raw_writeq(b, addr)
515 515
516#define mmiowb()
517
518/* 516/*
519 * String version of IO memory access ops: 517 * String version of IO memory access ops:
520 */ 518 */
diff --git a/arch/hexagon/include/asm/io.h b/arch/hexagon/include/asm/io.h
index e17262ad125e..3d0ae09c2b8e 100644
--- a/arch/hexagon/include/asm/io.h
+++ b/arch/hexagon/include/asm/io.h
@@ -184,8 +184,6 @@ static inline void writel(u32 data, volatile void __iomem *addr)
184#define writew_relaxed __raw_writew 184#define writew_relaxed __raw_writew
185#define writel_relaxed __raw_writel 185#define writel_relaxed __raw_writel
186 186
187#define mmiowb()
188
189/* 187/*
190 * Need an mtype somewhere in here, for cache type deals? 188 * Need an mtype somewhere in here, for cache type deals?
191 * This is probably too long for an inline. 189 * This is probably too long for an inline.
diff --git a/arch/parisc/include/asm/io.h b/arch/parisc/include/asm/io.h
index 30a8315d5c07..93d37010b375 100644
--- a/arch/parisc/include/asm/io.h
+++ b/arch/parisc/include/asm/io.h
@@ -229,8 +229,6 @@ static inline void writeq(unsigned long long q, volatile void __iomem *addr)
229#define writel_relaxed(l, addr) writel(l, addr) 229#define writel_relaxed(l, addr) writel(l, addr)
230#define writeq_relaxed(q, addr) writeq(q, addr) 230#define writeq_relaxed(q, addr) writeq(q, addr)
231 231
232#define mmiowb() do { } while (0)
233
234void memset_io(volatile void __iomem *addr, unsigned char val, int count); 232void memset_io(volatile void __iomem *addr, unsigned char val, int count);
235void memcpy_fromio(void *dst, const volatile void __iomem *src, int count); 233void memcpy_fromio(void *dst, const volatile void __iomem *src, int count);
236void memcpy_toio(volatile void __iomem *dst, const void *src, int count); 234void memcpy_toio(volatile void __iomem *dst, const void *src, int count);
diff --git a/arch/powerpc/include/asm/mmiowb.h b/arch/powerpc/include/asm/mmiowb.h
index b10180613507..74a00127eb20 100644
--- a/arch/powerpc/include/asm/mmiowb.h
+++ b/arch/powerpc/include/asm/mmiowb.h
@@ -11,8 +11,6 @@
11#define arch_mmiowb_state() (&local_paca->mmiowb_state) 11#define arch_mmiowb_state() (&local_paca->mmiowb_state)
12#define mmiowb() mb() 12#define mmiowb() mb()
13 13
14#else
15#define mmiowb() do { } while (0)
16#endif /* CONFIG_MMIOWB */ 14#endif /* CONFIG_MMIOWB */
17 15
18#include <asm-generic/mmiowb.h> 16#include <asm-generic/mmiowb.h>
diff --git a/arch/sparc/include/asm/io_64.h b/arch/sparc/include/asm/io_64.h
index b162c23ae8c2..688911051b44 100644
--- a/arch/sparc/include/asm/io_64.h
+++ b/arch/sparc/include/asm/io_64.h
@@ -396,8 +396,6 @@ static inline void memcpy_toio(volatile void __iomem *dst, const void *src,
396 } 396 }
397} 397}
398 398
399#define mmiowb()
400
401#ifdef __KERNEL__ 399#ifdef __KERNEL__
402 400
403/* On sparc64 we have the whole physical IO address space accessible 401/* On sparc64 we have the whole physical IO address space accessible
diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h
index bc490a746602..8f3bf95a36d1 100644
--- a/include/asm-generic/io.h
+++ b/include/asm-generic/io.h
@@ -22,10 +22,6 @@
22#include <asm/mmiowb.h> 22#include <asm/mmiowb.h>
23#include <asm-generic/pci_iomap.h> 23#include <asm-generic/pci_iomap.h>
24 24
25#ifndef mmiowb
26#define mmiowb() do {} while (0)
27#endif
28
29#ifndef __io_br 25#ifndef __io_br
30#define __io_br() barrier() 26#define __io_br() barrier()
31#endif 27#endif