rdma: Reduce scope of _dev_map_lookup call
There is no external users of _dev_map_lookup function,
so let's limit its scope to be local.
Fixes: 40df8263a0 ("rdma: Add dev object")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
This commit is contained in:
parent
1e4be52bf2
commit
0fc8c30b4e
|
|
@ -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);
|
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, bool allow_port_index);
|
||||||
struct dev_map *_dev_map_lookup(struct rd *rd, const char *dev_name);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Netlink
|
* Netlink
|
||||||
|
|
|
||||||
|
|
@ -236,7 +236,7 @@ int rd_recv_msg(struct rd *rd, mnl_cb_t callback, void *data, unsigned int seq)
|
||||||
return ret;
|
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;
|
struct dev_map *dev_map;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue