Message ID | 20190301140348.25175-19-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 w62csp770883jad; Fri, 1 Mar 2019 06:05:27 -0800 (PST) X-Google-Smtp-Source: APXvYqyhy1+uW+3PYRj8YNOGMQ7UfjbIElDLq/HKY5Hjx5OefyKKYkZ4kK6kfuh0/ZCmekBWwBRt X-Received: by 2002:a62:11ca:: with SMTP id 71mr5681904pfr.18.1551449127869; Fri, 01 Mar 2019 06:05:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551449127; cv=none; d=google.com; s=arc-20160816; b=DeP++t5C3PKfSrHA1i0mVP1InTNPblrXK9qEvxvXTMJlwcDG9+8S3TRnR5FjBy/izk NJievlxJ0ZyNS6WPfAIq7cmPwEngRTrlwzKRpzajtCu7LQbp/yEdZKjLIKIvjMyVc6Qp kbqh1rmI07ucFC5uq1IiXov08Et1y5RnkeVhcLUAYU7sx7AlBYxag8hnWV/QWzPVtamC WHIKT+AXP4fud2VFLOZwuqQ8CqWSwjhiyDe/PVe9S/E+kOmnMt1jV+ZrbM2ZUgbQ324O y4dy5JqGS9cWDqlD1p6+qT+YtHxCZoh1EEDUciY8heEVU+TC0T5V1wDRbraPuC0f2zKD TbSA== 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=Exuq9m1aRRtbUCKmD4h0+Sn//AtTZVYZJkrkFd3frM0=; b=Ois+V2o3xRn29aYiQGdDtXX1yqwf+/CGC3pA7OpX8YD6eVlh3Qff9HWQcLWaH3KPkj bi5ql3q2hvjH0vHN/cLwKUBdLa2uLCRxb0xVjfXy6Yu//cEeT8NMhxoK5sy23poK7O3m m5DSaPvj8DXXAwNpQICu/S8J9cT/V3gL6J5WB2DUjC+8fbBKQAm+/CTEArs32UADhwhe arXCwpOnPlR8ZCFIkTg+S1os11XRpNnDjGjgN1zJHsG6ywu5aDMq65t/XGfjZeqF3AEj oJgRjNghLkyu5q/pPDvSB9qaYaIzmA7L4BB+H8/OTJfRng+L7HkNq5aLjPbTIKFBBHWo +f+Q== 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 b142si14409309pfb.61.2019.03.01.06.05.27; Fri, 01 Mar 2019 06:05:27 -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 S2388024AbfCAOF0 (ORCPT <rfc822;mike.holmes@linaro.org> + 31 others); Fri, 1 Mar 2019 09:05:26 -0500 Received: from foss.arm.com ([217.140.101.70]:36180 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388627AbfCAOFG (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 1 Mar 2019 09:05:06 -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 936641C2B; Fri, 1 Mar 2019 06:05:05 -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 4EAD03F720; Fri, 1 Mar 2019 06:05:02 -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 18/20] i40iw: Redefine i40iw_mmiowb() to do nothing Date: Fri, 1 Mar 2019 14:03:46 +0000 Message-Id: <20190301140348.25175-19-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/drivers/infiniband/hw/i40iw/i40iw_osdep.h b/drivers/infiniband/hw/i40iw/i40iw_osdep.h index f27be3e7830b..d474aad62a81 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_osdep.h +++ b/drivers/infiniband/hw/i40iw/i40iw_osdep.h @@ -211,7 +211,7 @@ enum i40iw_status_code i40iw_hw_manage_vf_pble_bp(struct i40iw_device *iwdev, struct i40iw_sc_vsi; void i40iw_hw_stats_start_timer(struct i40iw_sc_vsi *vsi); void i40iw_hw_stats_stop_timer(struct i40iw_sc_vsi *vsi); -#define i40iw_mmiowb() mmiowb() +#define i40iw_mmiowb() do { } while (0) void i40iw_wr32(struct i40iw_hw *hw, u32 reg, u32 value); u32 i40iw_rd32(struct i40iw_hw *hw, u32 reg); #endif /* _I40IW_OSDEP_H_ */
mmiowb() is now implicit in spin_unlock(), so there's no reason to call it from driver code. Redefine i40iw_mmiowb() to do nothing instead. Signed-off-by: Will Deacon <will.deacon@arm.com> --- drivers/infiniband/hw/i40iw/i40iw_osdep.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.11.0