]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/IPoIB: Limit the ipoib_dev_uninit_default scope
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 14 May 2017 10:32:06 +0000 (13:32 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 1 Jun 2017 21:20:10 +0000 (17:20 -0400)
commit7063fcec1dbbc079b1efcb6a34dc7bf0cc85c2e3
tree3e1eb0576989e4c87e7969bef77763ba574dce4c
parenta03167af3c88ff30c6cc591738202b3143961ce6
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>
drivers/infiniband/ulp/ipoib/ipoib_main.c