mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00: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
|
@ -302,6 +302,7 @@ static void dump_common_audit_data(struct audit_buffer *ab,
|
|||
"faddr", "fport");
|
||||
break;
|
||||
}
|
||||
#if IS_ENABLED(CONFIG_IPV6)
|
||||
case AF_INET6: {
|
||||
struct inet_sock *inet = inet_sk(sk);
|
||||
|
||||
|
@ -313,6 +314,7 @@ static void dump_common_audit_data(struct audit_buffer *ab,
|
|||
"faddr", "fport");
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
case AF_UNIX:
|
||||
u = unix_sk(sk);
|
||||
if (u->path.dentry) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue