Message ID | 20190222185026.10973-19-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 69csp2070760jaa; Fri, 22 Feb 2019 10:51:41 -0800 (PST) X-Google-Smtp-Source: AHgI3IYlU40zw0/u0z+RldN6RYaf+yijl9/YCJOcSxDspeENDIfDm3Hn3t4nEPh0GE5UTm5OemND X-Received: by 2002:a63:1ce:: with SMTP id 197mr5289029pgb.47.1550861501382; Fri, 22 Feb 2019 10:51:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550861501; cv=none; d=google.com; s=arc-20160816; b=xpA8q7zk5fn1IUoa/QaXm3XiLoDCxiH381i7RcaM+gEcZawYXvAHMoZdH1KqkMUzLo wqIRlPkA4Yf/kpqcYpYCxikfMKtvtu58GuxpoV9JZRmZ8TqtMopT5TB1HSTYiIXtKpGT gbAZTuUNyu7a4Nf5dpfgn1cJBMZh290lkpB609AKq5s+0C3J2I9idoZW2N1rN3LcBETt 6hvCnVqj6Yr5zRsYog8KlfZHEsLxbtrM9yjlVRr87+Udv9QGtMJRTmzBTll3aY2VMo9y 3qtkbDxJmRCZuIoH2FOjheBNMVAHnjZV/Ct+dVvCxjL9Li1sifvkl/ugj0x1wA8v+pxt yCLQ== 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=lkze5q2qutpAi68FpcqVFABcekLV1k0XO9VCTrNrWAFWYEhEG1HhRkIyklkkQDo0O4 GvNE2UEzAjjOeUVi2+cM9kfM6tYMXnKdulA/1T6cy7Xv1thYz1+EmxxRsJLpPJ8TJL3u yED2l1XSx6KJHdeoT/YnT6RebBcKzS+IPggv0QBtiPvXPPx8QRJU+5wdrLnwX3ZqdH23 +HTbNwGGwyIfirlHJ24PxXlLwTsUeVXVS6sHu1lDgQmgxT/VtbH7L1H3YHlA/rf+9hvQ lBlf+Wl1BD5gXFRZh3GPHgRYugRlrri5a7TmSDvRNor96lBiZaNNU6koyNmfJZsOjA/J nOQA== 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 b9si1851894pgt.390.2019.02.22.10.51.41; Fri, 22 Feb 2019 10:51:41 -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 S1727690AbfBVSvk (ORCPT <rfc822;mike.holmes@linaro.org> + 32 others); Fri, 22 Feb 2019 13:51:40 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:39734 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726368AbfBVSvj (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 22 Feb 2019 13:51:39 -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 B1B421A25; Fri, 22 Feb 2019 10:51:38 -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 6DB143F5C1; Fri, 22 Feb 2019 10:51:35 -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 18/20] i40iw: Redefine i40iw_mmiowb() to do nothing Date: Fri, 22 Feb 2019 18:50:24 +0000 Message-Id: <20190222185026.10973-19-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/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