diff options
author | Kamal Heib <kamalheib1@gmail.com> | 2019-01-29 13:55:48 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-01-29 21:50:36 -0700 |
commit | ed0bc2658e1b7c083fc7f49cc6b56ea66f5ed350 (patch) | |
tree | 21c9e18003feeda13ad15198a931cccbec9964a5 /drivers/infiniband/ulp | |
parent | 8aa04ad3b39396e315b23448c56d5465200fa777 (diff) | |
download | linux-rpi-ed0bc2658e1b7c083fc7f49cc6b56ea66f5ed350.tar.gz linux-rpi-ed0bc2658e1b7c083fc7f49cc6b56ea66f5ed350.tar.bz2 linux-rpi-ed0bc2658e1b7c083fc7f49cc6b56ea66f5ed350.zip |
IB/ipoib: Make ipoib_intercept_dev_id_attr() static
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 <kamalheib1@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |