Skip to content

Commit

Permalink
IB/rxe: make the variable static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zhu Yanjun authored and Jason Gunthorpe committed Apr 18, 2018
1 parent ee6548d commit 0f02ba7
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/infiniband/sw/rxe/rxe_net.c
Original file line number Diff line number Diff line change
@@ -707,7 +707,7 @@ static int rxe_notify(struct notifier_block *not_blk,
return NOTIFY_OK;
}

struct notifier_block rxe_net_notifier = {
static struct notifier_block rxe_net_notifier = {
.notifier_call = rxe_notify,
};

1 change: 0 additions & 1 deletion drivers/infiniband/sw/rxe/rxe_net.h
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 0f02ba7

Please sign in to comment.