Message ID | 20190301140348.25175-7-will.deacon@arm.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp769480jad; Fri, 1 Mar 2019 06:04:29 -0800 (PST) X-Google-Smtp-Source: APXvYqzCzu92Tr3ikC5SYyrHTLoXYBQ0ZvxCl0veVWsFlN1wI6DL8izxqfF97k1augnXEjY25PUt X-Received: by 2002:a63:f544:: with SMTP id e4mr4986565pgk.145.1551449069696; Fri, 01 Mar 2019 06:04:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551449069; cv=none; d=google.com; s=arc-20160816; b=DthBJMSe1nvRvfTPhQ2UmjhxSfiIBHu2bqcM0KklOaAqgs5LR6g9zgSpE8Nw6qfV3j G2dhTS+qzaysonkvSMPY696zDzvW3Gb4TkshYq4Aqq2hPKZb8WjXx6b87j7sF4fp8X6Y nvp73rLBBN+FGpCPd9LFsVIzkQ04y13dE0aRz6Jj4ZmSvjIpWTFdifufpi1v1t4xAJ2d CEOlRMDSTrXCxeJ1VB+T6UP5gkm+/tOKWh8ZeyLLFYsjWWVs45/SzdbgSk7MeSgRDx+J y26pupeLZyXPA+Te5kMjviOM/B0rnUWS6O7hkwgCmeoZ8wMByztAfYU+5hWIYX185ne1 gSng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=f7WYeoPaZNPQ57fzzvqL/gu1swrT+HjFsb8LEv/f3MY=; b=kyy50ptHYyGQrBjdRd5HAbeo9TnWvLFaKfl3FxEIOMkXQaX+6lTKN1I0mVt566EMc9 5B/f/v2HGTGgseu1xl3RixI5AQgYhoZxFkhJWZGynKHPFiLTtmyHME54BU0U37rXmN7l jOYFuIYY4H8/cP760JBogf8D9SV3yNw9JflRa0/6vjOoOzuPHz3BIwaG2qav/osPGmne VHFZRA8dOflaeFpBeOGbKNhROK5w0cpBgQo9MEOPrQKogDglHJcsZnxgITRwZ3YJuIOn 3qzSUBqBpqkuEqZB6SCSuFViQVcAdGNz6sMB99OLq9CYcEhnWj1YPDtELkA8cjGyczS0 VAcg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d12si7577774pgq.156.2019.03.01.06.04.29; Fri, 01 Mar 2019 06:04:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388468AbfCAOE1 (ORCPT <rfc822;mike.holmes@linaro.org> + 31 others); Fri, 1 Mar 2019 09:04:27 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:35708 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388442AbfCAOEX (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 1 Mar 2019 09:04:23 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DAACDA78; Fri, 1 Mar 2019 06:04:22 -0800 (PST) Received: from fuggles.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 969993F720; Fri, 1 Mar 2019 06:04:19 -0800 (PST) From: Will Deacon <will.deacon@arm.com> To: linux-arch@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Will Deacon <will.deacon@arm.com>, "Paul E. McKenney" <paulmck@linux.ibm.com>, Benjamin Herrenschmidt <benh@kernel.crashing.org>, Michael Ellerman <mpe@ellerman.id.au>, Arnd Bergmann <arnd@arndb.de>, Peter Zijlstra <peterz@infradead.org>, Andrea Parri <andrea.parri@amarulasolutions.com>, Palmer Dabbelt <palmer@sifive.com>, Daniel Lustig <dlustig@nvidia.com>, David Howells <dhowells@redhat.com>, Alan Stern <stern@rowland.harvard.edu>, Linus Torvalds <torvalds@linux-foundation.org>, "Maciej W. Rozycki" <macro@linux-mips.org>, Paul Burton <paul.burton@mips.com>, Ingo Molnar <mingo@kernel.org>, Yoshinori Sato <ysato@users.sourceforge.jp>, Rich Felker <dalias@libc.org>, Tony Luck <tony.luck@intel.com> Subject: [PATCH 06/20] x86/io: Remove useless definition of mmiowb() Date: Fri, 1 Mar 2019 14:03:34 +0000 Message-Id: <20190301140348.25175-7-will.deacon@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190301140348.25175-1-will.deacon@arm.com> References: <20190301140348.25175-1-will.deacon@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
Remove Mysterious Macro Intended to Obscure Weird Behaviours (mmiowb())
|
expand
|
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")
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, we can remove the definition entirely and pick up the dummy definition from core code. Signed-off-by: Will Deacon <will.deacon@arm.com> --- arch/x86/include/asm/io.h | 2 -- 1 file changed, 2 deletions(-) -- 2.11.0