Skip to content

Commit 8f1a72c

Browse files
Zhu Yanjundledford
authored andcommitted
IB/rxe: make rxe_release_udp_tunnel static
The function rxe_release_udp_tunnel is only used in rxe_net.c. So it is necessary to make this function as static. CC: Srinivas Eeda <[email protected]> CC: Junxiao Bi <[email protected]> Signed-off-by: Zhu Yanjun <[email protected]> Reviewed-by: Yuval Shaia <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
1 parent 4e56569 commit 8f1a72c

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

drivers/infiniband/sw/rxe/rxe_net.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ static struct socket *rxe_setup_udp_tunnel(struct net *net, __be16 port,
315315
return sock;
316316
}
317317

318-
void rxe_release_udp_tunnel(struct socket *sk)
318+
static void rxe_release_udp_tunnel(struct socket *sk)
319319
{
320320
if (sk)
321321
udp_tunnel_sock_release(sk);

drivers/infiniband/sw/rxe/rxe_net.h

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

46-
void rxe_release_udp_tunnel(struct socket *sk);
47-
4846
struct rxe_dev *rxe_net_add(struct net_device *ndev);
4947

5048
int rxe_net_init(void);

0 commit comments

Comments
 (0)