mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 05:29:04 -04:00
net: fix build errors if ipv6 is disabled
CONFIG_IPV6=n is still a valid choice ;) It appears we can remove dead code. Reported-by: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f69b923a75
commit
c2bb06db59
5 changed files with 15 additions and 3 deletions
|
|
@ -66,12 +66,14 @@ static inline void __tcp_v6_send_check(struct sk_buff *skb,
|
|||
}
|
||||
}
|
||||
|
||||
#if IS_ENABLED(CONFIG_IPV6)
|
||||
static inline void tcp_v6_send_check(struct sock *sk, struct sk_buff *skb)
|
||||
{
|
||||
struct ipv6_pinfo *np = inet6_sk(sk);
|
||||
|
||||
__tcp_v6_send_check(skb, &np->saddr, &sk->sk_v6_daddr);
|
||||
}
|
||||
#endif
|
||||
|
||||
int udp6_csum_init(struct sk_buff *skb, struct udphdr *uh, int proto);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue