Skip to content

Commit

Permalink
IB/rxe: make rxe_release_udp_tunnel static
Browse files Browse the repository at this point in the history
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 <srinivas.eeda@oracle.com>
CC: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
  • Loading branch information
Zhu Yanjun authored and Doug Ledford committed Apr 19, 2018
1 parent 4e56569 commit 8f1a72c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/infiniband/sw/rxe/rxe_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ static struct socket *rxe_setup_udp_tunnel(struct net *net, __be16 port,
return sock;
}

void rxe_release_udp_tunnel(struct socket *sk)
static void rxe_release_udp_tunnel(struct socket *sk)
{
if (sk)
udp_tunnel_sock_release(sk);
Expand Down
2 changes: 0 additions & 2 deletions drivers/infiniband/sw/rxe/rxe_net.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ struct rxe_recv_sockets {
struct socket *sk6;
};

void rxe_release_udp_tunnel(struct socket *sk);

struct rxe_dev *rxe_net_add(struct net_device *ndev);

int rxe_net_init(void);
Expand Down

0 comments on commit 8f1a72c

Please sign in to comment.