net/ipv6: Make __inet6_bind static
Subsystems (3)
PATCH 1/1 net/ipv6: Make __inet6_bind static
BPF core gets access to __inet6_bind via ipv6_bpf_stub_impl, so it is not invoked directly outside of af_inet6.c. Make it static and move inet6_bind after to avoid forward declaration.
Signed-off-by David Ahern <[email protected]>
--- include/net/ipv6.h | 2 -- net/ipv6/af_inet6.c | 53 ++++++++++++++++++++++++++--------------------------- 2 files changed, 26 insertions(+), 29 deletions(-)
include/net/ipv6.h +0 -2
@@ -1044,8 +1044,6 @@ void ipv6_local_error(struct sock *sk, int err, struct flowi6 *fl6, u32 info);void ipv6_local_rxpmtu (struct sock *sk,struct flowi6 *fl6,u32 mtu);int inet6_release (struct socket *sock); -int __inet6_bind (struct sock *sock,struct sockaddr *uaddr,int addr_len, -bool force_bind_address_no_port,bool with_lock);int inet6_bind (struct socket *sock,struct sockaddr *uaddr,int addr_len);int inet6_getname (struct socket *sock,struct sockaddr *uaddr,int peer);
net/ipv6/af_inet6.c +26 -27
65 lines not on this page · raw message
Signature · 1 line
2.11.0
From: David Ahern <[email protected]>
Date: Tue, 17 Apr 2018 10:00:39 -0700
Quoted 5 lines
BPF core gets access to
__inet6_bindviaipv6_bpf_stub_impl, so it is not invoked directly outside ofaf_inet6.c. Make it static and moveinet6_bindafter to avoid forward declaration.Signed-off-by David Ahern <[email protected]>
Applied, thanks David.