From patchwork Tue Jan 29 11:55:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Heib X-Patchwork-Id: 10786091 X-Patchwork-Delegate: jgg@ziepe.ca 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 CCDAA1399 for ; Tue, 29 Jan 2019 11:56:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC06E2B471 for ; Tue, 29 Jan 2019 11:56:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF6B62B56F; Tue, 29 Jan 2019 11:56:14 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,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 5AA8E2B471 for ; Tue, 29 Jan 2019 11:56:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731405AbfA2L4N (ORCPT ); Tue, 29 Jan 2019 06:56:13 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:39391 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730948AbfA2L4M (ORCPT ); Tue, 29 Jan 2019 06:56:12 -0500 Received: by mail-wr1-f67.google.com with SMTP id t27so21712589wra.6 for ; Tue, 29 Jan 2019 03:56:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xMXwOCmOWAmDbd0jmPTjSflE8i2F8F9qLbT3M36xyHM=; b=SkTMCOecIPlQZEi2PCbwURDJLSUDcWxrbk40SywOIDEo8iTqR7rr4ahEp/SUs83000 epKyOJTuRxqXtUYMbtM1F8oe3aLXxPrGqSrm+QWP8PyBiG9OxRKEvP0U0E0N3erstcum 8ulQxwrS3BbuYUT9DplnX+zQulddAL2JCMjhuU0IHFDeMC5nO0exvyyzlPGJUDyBpJ/X z1xNP3L2pNdil6RAiyiPxC0KU2OQGlNbY+FTkYrJbTU1zJVPUxCG8tALwpgi3ngEpeCy ji896fVcn4g1hOrf434zmFyxQcM6IKnH5ku9deWlcmt5N+I5wNBLHWuLQo8Ms1BWG95p C4uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xMXwOCmOWAmDbd0jmPTjSflE8i2F8F9qLbT3M36xyHM=; b=iYaNOSZd30uYOVEvGgSlmHobz1t3/Ivr4UkmpHJOKSCXF+vfRZTrQqGuVG0yNG14fl jmx8JMNvSVssbDEZ/cynz4mBSDx80V4Xl5H7Xzviop5AjqLhTwdkfwJ/5LNaCRuVjBgs vYpZ7otekYGg05vHFWaOJj2khpEBznQRM0FetokmIbmelUGZ/5vF9DslbhaDrl5tztat sDX133F6g6LmOzquqFNFv+Q2PFZK+R1DeqONzIU6zvqkC3m3YveS2YSI7vZhoAZyY0kv agpk6mIuAOdcnExy7G0GfL6FtRhQKh5y9RETxH93yoKTAvJf3WRYqNmNLQtza/66ZQXU tZzg== X-Gm-Message-State: AJcUukdWvsWgwTVJ7t90shTOnO3RsnLdp1glkvEfbVb59MG9gPLAVMo+ SCHB8F5GH/arXirrZoiTUTY= X-Google-Smtp-Source: ALg8bN4Sgoq9QFDjNbB6PzqqO5RSwxfz8HzXwqzsrt4thgaGpd4I98RQcYXIqGJ2tSdPTmQJAgAh4Q== X-Received: by 2002:adf:94e4:: with SMTP id 91mr26863648wrr.322.1548762970875; Tue, 29 Jan 2019 03:56:10 -0800 (PST) Received: from kheib-workstation.redhat.com ([192.116.94.216]) by smtp.gmail.com with ESMTPSA id b12sm1218980wmj.3.2019.01.29.03.56.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 Jan 2019 03:56:10 -0800 (PST) From: Kamal Heib To: Doug Ledford , Jason Gunthorpe Cc: linux-rdma@vger.kernel.org, Kamal Heib Subject: [PATCH for-rc] IB/ipoib: Make ipoib_intercept_dev_id_attr() static Date: Tue, 29 Jan 2019 13:55:48 +0200 Message-Id: <20190129115548.23945-1-kamalheib1@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 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 The function ipoib_intercept_dev_id_attr() is only used in ipoib_main.c Fixes: f6350da41dc7 ("IB/ipoib: Log sysfs 'dev_id' accesses from userspace") Signed-off-by: Kamal Heib --- 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 d932f99201d1..cb25b0df3fd1 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);