From: Leon Romanovsky <leo...@mellanox.com> There is no external users of _dev_map_lookup function, so let's limit its scope to be local.
Fixes: 40df8263a0f0 ("rdma: Add dev object") Signed-off-by: Leon Romanovsky <leo...@mellanox.com> --- rdma/rdma.h | 1 - rdma/utils.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/rdma/rdma.h b/rdma/rdma.h index d551eb29..c07493c9 100644 --- a/rdma/rdma.h +++ b/rdma/rdma.h @@ -78,7 +78,6 @@ int rd_exec_cmd(struct rd *rd, const struct rd_cmd *c, const char *str); */ void rd_free_devmap(struct rd *rd); struct dev_map *dev_map_lookup(struct rd *rd, bool allow_port_index); -struct dev_map *_dev_map_lookup(struct rd *rd, const char *dev_name); /* * Netlink diff --git a/rdma/utils.c b/rdma/utils.c index eb4377cf..6ce1fd70 100644 --- a/rdma/utils.c +++ b/rdma/utils.c @@ -236,7 +236,7 @@ int rd_recv_msg(struct rd *rd, mnl_cb_t callback, void *data, unsigned int seq) return ret; } -struct dev_map *_dev_map_lookup(struct rd *rd, const char *dev_name) +static struct dev_map *_dev_map_lookup(struct rd *rd, const char *dev_name) { struct dev_map *dev_map; -- 2.15.1