[PATCH] mips: use wmb() instead to replace iobarrier_w()

From: Baoquan He
Date: Mon Mar 13 2023 - 20:53:15 EST


Otherwise nested including of asm/io.h and asm/mmiowb.h will cause
compiling error.

Signed-off-by: Baoquan He <bhe@xxxxxxxxxx>
---
arch/mips/include/asm/mmiowb.h | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/arch/mips/include/asm/mmiowb.h b/arch/mips/include/asm/mmiowb.h
index a40824e3ef8e..dd206792abed 100644
--- a/arch/mips/include/asm/mmiowb.h
+++ b/arch/mips/include/asm/mmiowb.h
@@ -2,9 +2,7 @@
#ifndef _ASM_MMIOWB_H
#define _ASM_MMIOWB_H

-#include <asm/io.h>
-
-#define mmiowb() iobarrier_w()
+#define mmiowb() wmb()

#include <asm-generic/mmiowb.h>

--
2.34.1