diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2017-05-14 12:32:06 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-06-01 23:20:10 +0200 |
commit | 0a1a972630c77edb39adf310699e404b8bf9176e (patch) | |
tree | 3e1eb0576989e4c87e7969bef77763ba574dce4c /drivers | |
parent | RDMA/IPoIB: Replace netdev_priv with ipoib_priv for ipoib_get_link_ksettings (diff) | |
download | linux-0a1a972630c77edb39adf310699e404b8bf9176e.tar.xz linux-0a1a972630c77edb39adf310699e404b8bf9176e.zip |
RDMA/IPoIB: Limit the ipoib_dev_uninit_default scope
ipoib_dev_uninit_default() call is used in ipoib_main.c file only
and it generates the following warning from smatch tool:
drivers/infiniband/ulp/ipoib/ipoib_main.c:1593:6: warning:
symbol 'ipoib_dev_uninit_default' was not declared. Should it
be static?
so let's declare that function as static.
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers')
-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 2869d1adb1de..a115c0b7a310 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_main.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c @@ -1590,7 +1590,7 @@ static void ipoib_neigh_hash_uninit(struct net_device *dev) wait_for_completion(&priv->ntbl.deleted); } -void ipoib_dev_uninit_default(struct net_device *dev) +static void ipoib_dev_uninit_default(struct net_device *dev) { struct ipoib_dev_priv *priv = ipoib_priv(dev); |