IB/rxe: make the variable static

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 <srinivas.eeda@oracle.com>
CC: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
Zhu Yanjun 2018-04-03 20:08:20 -04:00 committed by Jason Gunthorpe
parent ee6548d1d9
commit 0f02ba7ed1
2 changed files with 1 additions and 2 deletions

View 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,
};

View 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);