aboutsummaryrefslogtreecommitdiffstats
path: root/arch/riscv/include/asm/mmiowb.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/include/asm/mmiowb.h')
-rw-r--r--arch/riscv/include/asm/mmiowb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/include/asm/mmiowb.h b/arch/riscv/include/asm/mmiowb.h
index 0b2333e71fdc5d..52ce4a399d9b2b 100644
--- a/arch/riscv/include/asm/mmiowb.h
+++ b/arch/riscv/include/asm/mmiowb.h
@@ -7,7 +7,7 @@
* "o,w" is sufficient to ensure that all writes to the device have completed
* before the write to the spinlock is allowed to commit.
*/
-#define mmiowb() __asm__ __volatile__ ("fence o,w" : : : "memory");
+#define mmiowb() RISCV_FENCE(o, w)
#include <linux/smp.h>
#include <asm-generic/mmiowb.h>