]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
rdma: Reduce scope of _dev_map_lookup call
authorLeon Romanovsky <leonro@mellanox.com>
Wed, 27 Dec 2017 07:57:50 +0000 (09:57 +0200)
committerDavid Ahern <dsahern@gmail.com>
Wed, 27 Dec 2017 15:47:35 +0000 (07:47 -0800)
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 <leonro@mellanox.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
rdma/rdma.h
rdma/utils.c

index d551eb2966e11d9810edaf0c2e7f9dab7af487e0..c07493c91242370d37fe1c08322581ac6c1370ba 100644 (file)
@@ -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
index eb4377cf2e185d19a6f88d7487c71043ccd18ffa..6ce1fd70e058fa96d206f1465aa43b2871773891 100644 (file)
@@ -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;