Skip to content

Commit 0f02ba7

Browse files
Zhu Yanjunjgunthorpe
authored andcommitted
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 <[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]>
1 parent ee6548d commit 0f02ba7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

drivers/infiniband/sw/rxe/rxe_net.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ static int rxe_notify(struct notifier_block *not_blk,
707707
return NOTIFY_OK;
708708
}
709709

710-
struct notifier_block rxe_net_notifier = {
710+
static struct notifier_block rxe_net_notifier = {
711711
.notifier_call = rxe_notify,
712712
};
713713

drivers/infiniband/sw/rxe/rxe_net.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ struct rxe_recv_sockets {
4343
struct socket *sk6;
4444
};
4545

46-
extern struct notifier_block rxe_net_notifier;
4746
void rxe_release_udp_tunnel(struct socket *sk);
4847

4948
struct rxe_dev *rxe_net_add(struct net_device *ndev);

0 commit comments

Comments
 (0)