mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
IB/ipoib: Make ipoib_intercept_dev_id_attr() static
The function ipoib_intercept_dev_id_attr() is only used in ipoib_main.c
Fixes: f6350da41d
("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>
This commit is contained in:
parent
8aa04ad3b3
commit
ed0bc2658e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue