summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/netlink.c
diff options
context:
space:
mode:
authorLeon Romanovsky2017-05-14 14:49:57 +0200
committerDoug Ledford2017-06-01 23:20:11 +0200
commit233c1955835bd8649003be9bb3d8e79788b08be1 (patch)
treee736935cff41e5a5b4f1c34b449fd5f960e5548b /drivers/infiniband/core/netlink.c
parentRDMA/srp: Fix NULL deref at srp_destroy_qp() (diff)
downloadkernel-qcow2-linux-233c1955835bd8649003be9bb3d8e79788b08be1.tar.gz
kernel-qcow2-linux-233c1955835bd8649003be9bb3d8e79788b08be1.tar.xz
kernel-qcow2-linux-233c1955835bd8649003be9bb3d8e79788b08be1.zip
RDMA/netlink: Reduce exposure of RDMA netlink functions
RDMA netlink is part of ib_core, hence ibnl_chk_listeners(), ibnl_init() and ibnl_cleanup() don't need to be published in public header file. Let's remove EXPORT_SYMBOL from ibnl_chk_listeners() and move all these functions to private header file. CC: Yuval Shaia <yuval.shaia@oracle.com> 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/infiniband/core/netlink.c')
-rw-r--r--drivers/infiniband/core/netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/netlink.c b/drivers/infiniband/core/netlink.c
index b784055423c8..94931c474d41 100644
--- a/drivers/infiniband/core/netlink.c
+++ b/drivers/infiniband/core/netlink.c
@@ -37,6 +37,7 @@
#include <net/net_namespace.h>
#include <net/sock.h>
#include <rdma/rdma_netlink.h>
+#include "core_priv.h"
struct ibnl_client {
struct list_head list;
@@ -55,7 +56,6 @@ int ibnl_chk_listeners(unsigned int group)
return -1;
return 0;
}
-EXPORT_SYMBOL(ibnl_chk_listeners);
int ibnl_add_client(int index, int nops,
const struct ibnl_client_cbs cb_table[])