aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/cache.c
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2018-05-28 20:32:40 -0600
committerJason Gunthorpe <jgg@mellanox.com>2018-05-29 15:19:31 -0600
commit5ef8c0c180a6318542dce7e0701dd8e341c1265b (patch)
treef78602030dc09d1b3ad0e68d89b983d3fc949f74 /drivers/infiniband/core/cache.c
parentMerge branch 'mr_fix' into git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma for-next (diff)
downloadlinux-dev-5ef8c0c180a6318542dce7e0701dd8e341c1265b.tar.xz
linux-dev-5ef8c0c180a6318542dce7e0701dd8e341c1265b.zip
RDMA/core: Remove indirection through ib_cache_setup()
This once might have made sense when cache.c was in a different module from device.c, but today it just obfuscation. Get rid of the wrappers and call roge_gid_mgmt_init()/cleanup() directly. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core/cache.c')
-rw-r--r--drivers/infiniband/core/cache.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/infiniband/core/cache.c b/drivers/infiniband/core/cache.c
index 0d11538c2a25..2bdfc4b4a15c 100644
--- a/drivers/infiniband/core/cache.c
+++ b/drivers/infiniband/core/cache.c
@@ -1295,13 +1295,3 @@ void ib_cache_cleanup_one(struct ib_device *device)
flush_workqueue(ib_wq);
gid_table_cleanup_one(device);
}
-
-void __init ib_cache_setup(void)
-{
- roce_gid_mgmt_init();
-}
-
-void __exit ib_cache_cleanup(void)
-{
- roce_gid_mgmt_cleanup();
-}