From patchwork Wed Jan 30 22:06:57 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: 10789365 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 3668C13BF for ; Wed, 30 Jan 2019 23:12:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A6AB2FA93 for ; Wed, 30 Jan 2019 23:12:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3B6ED2FA9C; Wed, 30 Jan 2019 23:12:10 +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 788532FA93 for ; Wed, 30 Jan 2019 23:12:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729464AbfA3XMI (ORCPT ); Wed, 30 Jan 2019 18:12:08 -0500 Received: from com-out001.mailprotect.be ([83.217.72.83]:49501 "EHLO com-out001.mailprotect.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726799AbfA3XMH (ORCPT ); Wed, 30 Jan 2019 18:12:07 -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=Kz5QIIc/l8kq/RPqT6PjSXRxcysDGOoONrVUaeY+Vrk=; b=QiH7F/cz2TJP JJCL6TT8JU+AiKGOjeaekAy6czK2ILnJ2ot6efgeLCyi0AudHIqrvU5Aqqj+MFttYyAIXl4Gs4XZR yh9J2VAHJG0IM/7+koJussPx9tBhMf3mMHpg1Wzh6JnRdshzzpXapaqqyppPTKQ+2o/UinDramduu +/TCvcAnvOyBkxnFsNDAwsfzq7lgHFjDgqW9H7Vv9odSnCT2WB9+awwX/cPygq5LCPQeHmbv0VfRC l72I1BFSionHgPBkb9vMzKrzBJQXlkEktFENhh1X8GEXpnqmyS6Qw4SW3Pgn1t4wWqH0PMN8AKB0f 4zVdlvAaP5/uri0qCgHnyQ==; Received: from smtp-auth.mailprotect.be ([178.208.39.159]) by com-mpt-out001.mailprotect.be with esmtp (Exim 4.89) (envelope-from ) id 1goy0m-0007xM-Gl; Wed, 30 Jan 2019 23:07:13 +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 7F41CC03F9; Wed, 30 Jan 2019 23:07:06 +0100 (CET) From: Bart Van Assche To: Jason Gunthorpe Cc: Doug Ledford , linux-rdma@vger.kernel.org, Bart Van Assche Subject: [PATCH] IPoIB: Declare local functions static Date: Wed, 30 Jan 2019 14:06:57 -0800 Message-Id: <20190130220657.9177-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.05) X-Recommended-Action: accept X-Filter-ID: EX5BVjFpneJeBchSMxfU5nVCxFUwmyjHp+58n4vWQPR602E9L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-Abuse-To: spam@com-mpt-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/ulp/ipoib/ipoib_main.c:2414:5: warning: no previous prototype for ipoib_intercept_dev_id_attr [-Wmissing-prototypes] int ipoib_intercept_dev_id_attr(struct net_device *dev) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Fixes: f6350da41dc7 ("IB/ipoib: Log sysfs 'dev_id' accesses from userspace") # v4.20 Signed-off-by: Bart Van Assche --- drivers/infiniband/ulp/ipoib/ipoib_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c index 45ef3b0f03c5..3d3407d1feb4 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_main.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c @@ -2411,7 +2411,7 @@ static ssize_t dev_id_show(struct device *dev, } static DEVICE_ATTR_RO(dev_id); -int ipoib_intercept_dev_id_attr(struct net_device *dev) +static int ipoib_intercept_dev_id_attr(struct net_device *dev) { device_remove_file(&dev->dev, &dev_attr_dev_id); return device_create_file(&dev->dev, &dev_attr_dev_id);