Message ID | 20190222185026.10973-7-will.deacon@arm.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2070059jaa; Fri, 22 Feb 2019 10:50:58 -0800 (PST) X-Google-Smtp-Source: AHgI3IaEQjnj20vbqVeO5haCANl9Dp8/9xF2zScTqHSHm5Suj3SgHhLpsjdL9uT2ecCzfJyr61HJ X-Received: by 2002:a62:be08:: with SMTP id l8mr5594278pff.162.1550861458443; Fri, 22 Feb 2019 10:50:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550861458; cv=none; d=google.com; s=arc-20160816; b=daGLKpOVgqy+iFDJa/2tGAhR17HmRr4nV+BuKZae8+loq89uOXWfLbgTr/Pd37NObq IWs4Y/zoJmJwlPD9BmcKfJ/BOC0cTx2B/WxYOoE1RHmS+koX3QCvLBCoSNplqey1vGdV LXFAru1lqKtMfqn03/4zHvj8IYyujlh0u6rLRCSOU6Tiql52AyEFCOPFOyHLRFW0JVDY zK51c0zl9JENoLCE38g3QzlNh5qXpzFrmxBiOyvsknJeAx/PyEL4AOotkrNN6awJKEGi LCiOLq5XjqyCPo5uZ/1cPFpWnGQHlr2N0vbVIqD9wKTbv7xP+N2q/SQn3Jpubw3hVhHB f6Aw== 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=D308K6TJy7cBVInYnTqzUCZQzd2y7k417f6E/Ujo0K0EYQZ+2aswdzfEoj3S3f5mNw gFUiooQcumDR8Bl+2X94ybpFQF25tSdvbLq5yr2PWwl2m1sJpDuD+Pi832F8ysKaFl2x te4cXBs4SbKpy/Ja0yrifu0vOpeDhKEJKrFp1Byp2OMjGbqDtM6LYtAIX6abpJzHT/pH AGf/w/cmVDjW4otdpLKW1DZjVPxgjll6X8h4bjtCs7bK2UGkueY2JsKJwlueNHoHF26k aZCqQlPnNKEjstZKEl50cqabCVomktzGM9EnRWnwZnhGUbeNgfelE4ZamH1kZR0WPslM JavQ== 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 21si1960106pgl.308.2019.02.22.10.50.58; Fri, 22 Feb 2019 10:50:58 -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 S1727203AbfBVSu5 (ORCPT <rfc822;mike.holmes@linaro.org> + 32 others); Fri, 22 Feb 2019 13:50:57 -0500 Received: from foss.arm.com ([217.140.101.70]:39248 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725832AbfBVSu4 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 22 Feb 2019 13:50:56 -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 DD95A1688; Fri, 22 Feb 2019 10:50:55 -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 9A16D3F5C1; Fri, 22 Feb 2019 10:50:52 -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: [RFC PATCH 06/20] x86: io: Remove useless definition of mmiowb() Date: Fri, 22 Feb 2019 18:50:12 +0000 Message-Id: <20190222185026.10973-7-will.deacon@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190222185026.10973-1-will.deacon@arm.com> References: <20190222185026.10973-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