From patchwork Wed Jan 30 22:07:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10789431 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3C737746 for ; Thu, 31 Jan 2019 00:12:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5054A304C6 for ; Thu, 31 Jan 2019 00:12:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4D90D304E1; Thu, 31 Jan 2019 00:12:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A6A7F304C6 for ; Thu, 31 Jan 2019 00:12:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726783AbfAaAMx (ORCPT ); Wed, 30 Jan 2019 19:12:53 -0500 Received: from com-out001.mailprotect.be ([83.217.72.83]:60435 "EHLO com-out001.mailprotect.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726087AbfAaAMx (ORCPT ); Wed, 30 Jan 2019 19:12:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mailprotect.be; s=mail; h=Content-Transfer-Encoding:MIME-Version:Message-Id :Date:Subject:Cc:To:From:reply-to:sender:bcc:in-reply-to:references: content-type; bh=i9rDY00UF5sZ/zBJvQ20DyJd7jdhZ11kmYkRG6/s9BY=; b=QhTo4x5kQ5qT jYrOEGs0cRQXJGbXKYQ8eH88xim+thQbRh819v7E0YbocmzNioKJkOJRTrgOpH+PSysafv3Q/rA0R THV5rClCpObsTLebetxfN72ise8zQ3RNMF97JBTxKR88c3L0raJim31+g2byaqqf6o0Z3NXnGSE72 QaMyQs5oQDaJcekxOZ1IYCuzLcR2U0YRKCgcLuANadJnG9/e4mimqpHCUxTzL/PWP0UCDODn5mLYy JJRpN1p6IMyVBDtchGmQZROVTtTlAI9yZf5PhR5iSr18cwkS77ik+hCQqUaR3Y7Jo6rOYmjS00ozj JzKOdsEjA69GxxdiLJJVrw==; Received: from smtp-auth.mailprotect.be ([178.208.39.159]) by com-mpt-out001.mailprotect.be with esmtp (Exim 4.89) (envelope-from ) id 1goy15-00083R-F3; Wed, 30 Jan 2019 23:07:31 +0100 Received: from desktop-bart.svl.corp.google.com (unknown [104.133.8.89]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-auth.mailprotect.be (Postfix) with ESMTPSA id 2D77EC16CC; Wed, 30 Jan 2019 23:07:30 +0100 (CET) From: Bart Van Assche To: Jason Gunthorpe Cc: Doug Ledford , linux-rdma@vger.kernel.org, Bart Van Assche Subject: [PATCH] mlx5: Declare local functions static Date: Wed, 30 Jan 2019 14:07:23 -0800 Message-Id: <20190130220723.10338-1-bvanassche@acm.org> X-Mailer: git-send-email 2.20.1.495.gaa96b0ce6b-goog MIME-Version: 1.0 X-Originating-IP: 178.208.39.159 X-SpamExperts-Domain: mailprotect.be X-SpamExperts-Username: 178.208.39.128/27 Authentication-Results: mailprotect.be; auth=pass smtp.auth=178.208.39.128/27@mailprotect.be X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.07) X-Recommended-Action: accept X-Filter-ID: EX5BVjFpneJeBchSMxfU5iq63+Z2cnWt2fPcBFvD+45602E9L7XzfQH6nu9C/Fh9KJzp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mgt001.mailprotect.be Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch avoids that the following compiler warning is reported when building with W=1: drivers/infiniband/hw/mlx5/main.c:6179:6: warning: no previous prototype for mlx5_ib_stage_odp_cleanup [-Wmissing-prototypes] void mlx5_ib_stage_odp_cleanup(struct mlx5_ib_dev *dev) ^~~~~~~~~~~~~~~~~~~~~~~~~ Fixes: d5d284b829a6 ("{net,IB}/mlx5: Move Page fault EQ and ODP logic to RDMA") # v5.0-rc1 Signed-off-by: Bart Van Assche --- drivers/infiniband/hw/mlx5/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index 2aaa196c2653..96bf1b2f9dd7 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@ -6176,7 +6176,7 @@ static int mlx5_ib_stage_odp_init(struct mlx5_ib_dev *dev) return mlx5_ib_odp_init_one(dev); } -void mlx5_ib_stage_odp_cleanup(struct mlx5_ib_dev *dev) +static void mlx5_ib_stage_odp_cleanup(struct mlx5_ib_dev *dev) { mlx5_ib_odp_cleanup_one(dev); }