IB/rxe: make the variable static
authorZhu Yanjun <[email protected]>
Wed, 4 Apr 2018 00:08:20 +0000 (20:08 -0400)
committerJason Gunthorpe <[email protected]>
Wed, 18 Apr 2018 01:54:38 +0000 (19:54 -0600)
The variable rxe_net_notifier is only used in the file rxe_net.c. So
remove it from rxe_net.h file and make it static in the file rxe_net.c.

CC: Srinivas Eeda <[email protected]>
CC: Junxiao Bi <[email protected]>
Signed-off-by: Zhu Yanjun <[email protected]>
Reviewed-by: Bart Van Assche <[email protected]>
Reviewed-by: Yuval Shaia <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
drivers/infiniband/sw/rxe/rxe_net.c
drivers/infiniband/sw/rxe/rxe_net.h

index 9da6e37fb70c7a63412ef8161075da2e1cd60ac8..241762606a6679aa5a4085621847c70ee59c70e5 100644 (file)
@@ -707,7 +707,7 @@ out:
        return NOTIFY_OK;
 }
 
-struct notifier_block rxe_net_notifier = {
+static struct notifier_block rxe_net_notifier = {
        .notifier_call = rxe_notify,
 };
 
index 728d8c71b36a50a63ff5f5aa904773f32f9a77e4..15a0caf98629408f09a1ce7b408ef6cce756d320 100644 (file)
@@ -43,7 +43,6 @@ struct rxe_recv_sockets {
        struct socket *sk6;
 };
 
-extern struct notifier_block rxe_net_notifier;
 void rxe_release_udp_tunnel(struct socket *sk);
 
 struct rxe_dev *rxe_net_add(struct net_device *ndev);