summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/sw/rxe/rxe_net.c
diff options
context:
space:
mode:
authorZhu Yanjun <yanjun.zhu@oracle.com>2018-01-07 07:08:48 -0500
committerDoug Ledford <dledford@redhat.com>2018-01-08 17:43:06 -0500
commit91eab79653b89f92f266b411792f0a0d46857a3a (patch)
treea0bf523ea8b8793a6d33cc0669f60a70be2b9599 /drivers/infiniband/sw/rxe/rxe_net.c
parentf8457d5832d882d8a74fe41a6ce70313a31b3e0e (diff)
downloadlinux-91eab79653b89f92f266b411792f0a0d46857a3a.tar.gz
linux-91eab79653b89f92f266b411792f0a0d46857a3a.tar.bz2
linux-91eab79653b89f92f266b411792f0a0d46857a3a.zip
IB/rxe: add the static type to the variable
The variable recv_sockets is only used in the file rxe_net.c. So it is better to add static type to it. CC: Srinivas Eeda <srinivas.eeda@oracle.com> CC: Joe Jin <joe.jin@oracle.com> CC: Junxiao Bi <junxiao.bi@oracle.com> Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/sw/rxe/rxe_net.c')
-rw-r--r--drivers/infiniband/sw/rxe/rxe_net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_net.c b/drivers/infiniband/sw/rxe/rxe_net.c
index 59dee10bebcb..44d77807a69d 100644
--- a/drivers/infiniband/sw/rxe/rxe_net.c
+++ b/drivers/infiniband/sw/rxe/rxe_net.c
@@ -82,7 +82,7 @@ struct rxe_dev *get_rxe_by_name(const char *name)
}
-struct rxe_recv_sockets recv_sockets;
+static struct rxe_recv_sockets recv_sockets;
struct device *rxe_dma_device(struct rxe_dev *rxe)
{