Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp485383imb; Fri, 1 Mar 2019 06:07:10 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ/sPGE7xYfykI4bH4kfKvXJnPSB2LHZNWw0b1d0L4WlfWfjL0OaMZvAIESzpKrmZUxjhvw X-Received: by 2002:a62:7602:: with SMTP id r2mr5642077pfc.191.1551449230174; Fri, 01 Mar 2019 06:07:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551449230; cv=none; d=google.com; s=arc-20160816; b=pKU0RMWoeCverA6oNEAYblaJKxBzrKKHNWfD+OdQ8w+K33vHPHY6kMSpZ76bYbIiCh QqEluySd9+3wWkmuTz1QN9MyYI8KR69rktFhJ9U7QooihuQ4zFxSxpZpmk0utQ4oa6aH +2dQB5V7LH9WWqm3B8tDHP1oGVvpMQybq++8PMYxrgMLHXAKPxX3rHQWxVQtiZyRxux1 Wj/vi0Nce9xBn10f4GcMC31mnfxgT06DLZ/shTUWuK7DTllTSJ24+HXj0HCHawMVTTch TRsXAfyfo7RYVzZ8N4R0i3dctFenlWi6fnXKepctOfklvWhMgqqEKZKDg0glamnuelLl CiiQ== 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: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c1si19754309pls.432.2019.03.01.06.06.55; Fri, 01 Mar 2019 06:07:10 -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 S2388455AbfCAOE0 (ORCPT + 99 others); Fri, 1 Mar 2019 09:04:26 -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 ); 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 To: linux-arch@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Will Deacon , "Paul E. McKenney" , Benjamin Herrenschmidt , Michael Ellerman , Arnd Bergmann , Peter Zijlstra , Andrea Parri , Palmer Dabbelt , Daniel Lustig , David Howells , Alan Stern , Linus Torvalds , "Maciej W. Rozycki" , Paul Burton , Ingo Molnar , Yoshinori Sato , Rich Felker , Tony Luck 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- arch/x86/include/asm/io.h | 2 -- 1 file changed, 2 deletions(-) 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") -- 2.11.0