IB/rxe: add the static type to the variable
authorZhu Yanjun <yanjun.zhu@oracle.com>
Sun, 7 Jan 2018 12:08:48 +0000 (07:08 -0500)
committerDoug Ledford <dledford@redhat.com>
Mon, 8 Jan 2018 22:43:06 +0000 (17:43 -0500)
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>
drivers/infiniband/sw/rxe/rxe_net.c
drivers/infiniband/sw/rxe/rxe_net.h

index 59dee10..44d7780 100644 (file)
@@ -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)
 {
index 1c06b3b..728d8c7 100644 (file)
@@ -43,7 +43,6 @@ struct rxe_recv_sockets {
        struct socket *sk6;
 };
 
-extern struct rxe_recv_sockets recv_sockets;
 extern struct notifier_block rxe_net_notifier;
 void rxe_release_udp_tunnel(struct socket *sk);