From patchwork Fri Apr 5 13:59:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 161861 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp473239jan; Fri, 5 Apr 2019 07:01:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzignMlFcErSjD2/KrmhosImP2C3AR4TpEpozQBGxfq44phIMvsj4ZXWqrZ4czj4N5Rv9iK X-Received: by 2002:a65:6295:: with SMTP id f21mr11341415pgv.129.1554472869361; Fri, 05 Apr 2019 07:01:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554472869; cv=none; d=google.com; s=arc-20160816; b=ZWWuCToJRHsSRBlEydQmujQhiFZq9Ys18qT8kVi7ZC6gtvHWzq8CiQ9mppUvRGnED6 bR/T7rox6nQO+W8QiDFgkb+PPLyb8vVU//Y15qmsj32j1mySbb/PR4rPGwgMLZ3V3/TC gXsLLe5SujR0EqwllIblMCKDjv65JRXCRlYCA0jXrgPibPCwVCGCU+BDxOUkjBVupyqW xUiB9Ke+eE0jC/qVwCO9sNvXYQSK43r2/1pi/KmDfiJSqUJh67Klzh+KjZBbRB7nryLi rO2UmUtSbrzlo3ydtE9DhL9hjD3hG7GLdfv2XQDTtPqmVg5yAzTJH6Meww3kPcrPJLtG mJ/w== 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=m0ZDrdtUldy//njriNMKCMF0K2KnKOZSGWOZWF2T4TWBwfy2FMGAgy2cUHysDULMku a9WRJz3H/6E+fN2/xWe3oxk/83I+8rUXEb7HSl5fO7Yd053sesnnV8gJUPokKAePnb2B BsYsD0VCxDTZcoJZCvzFD71uGDjdiEB/1o48ho6ILxEpS4uCwyjaSGsjabBZVDbP1B8K Nmz3qnuKnpSb4KEE0ki0SB6JTtbECfNKnjhcFcKpfqhE5C8x7HKWg1VB0vXjvXRTDvpZ SJGo7SUuC0Dl+AFgD5rfx6IckKLiq582rVvMjayXiFrkHLZpsjdNbhNuLdLt3SutpK3z 76hA== 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 f191si18906781pgc.570.2019.04.05.07.01.08; Fri, 05 Apr 2019 07:01:09 -0700 (PDT) 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 S1731577AbfDEOBH (ORCPT + 31 others); Fri, 5 Apr 2019 10:01:07 -0400 Received: from foss.arm.com ([217.140.101.70]:49776 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730587AbfDEOBF (ORCPT ); Fri, 5 Apr 2019 10:01:05 -0400 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 BE7ED1BF7; Fri, 5 Apr 2019 07:01:04 -0700 (PDT) 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 D7CC03F68F; Fri, 5 Apr 2019 07:01:00 -0700 (PDT) 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 , Mikulas Patocka , Akira Yokosawa , Luis Chamberlain , Nicholas Piggin Subject: [PATCH v2 19/21] i40iw: Redefine i40iw_mmiowb() to do nothing Date: Fri, 5 Apr 2019 14:59:34 +0100 Message-Id: <20190405135936.7266-20-will.deacon@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190405135936.7266-1-will.deacon@arm.com> References: <20190405135936.7266-1-will.deacon@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/infiniband/hw/i40iw/i40iw_osdep.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.11.0 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_ */