From: Will Deacon Date: Fri, 22 Feb 2019 13:03:18 +0000 (+0000) Subject: x86/io: Remove useless definition of mmiowb() X-Git-Tag: v5.2-rc1~185^2~16 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=08f1f3a72f4cea136686585b81a251baa3539f12;p=uclinux-h8%2Flinux.git x86/io: Remove useless definition of mmiowb() x86 maps mmiowb() to barrier(), but this is superfluous because a compiler barrier is already implied by spin_unlock(). Since x86 also includes asm-generic/io.h in its asm/io.h file, remove the definition entirely and pick up the dummy definition from core code. Acked-by: Linus Torvalds Reviewed-by: Thomas Gleixner Signed-off-by: Will Deacon --- diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h index 686247db3106..a06a9f8294ea 100644 --- a/arch/x86/include/asm/io.h +++ b/arch/x86/include/asm/io.h @@ -90,8 +90,6 @@ build_mmio_write(__writel, "l", unsigned int, "r", ) #define __raw_writew __writew #define __raw_writel __writel -#define mmiowb() barrier() - #ifdef CONFIG_X86_64 build_mmio_read(readq, "q", u64, "=r", :"memory")