mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
net: use IS_ENABLED(CONFIG_IPV6)
Instead of testing defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
1ded132d4c
commit
dfd56b8b38
48 changed files with 161 additions and 164 deletions
|
@ -77,7 +77,7 @@ struct net {
|
|||
struct netns_packet packet;
|
||||
struct netns_unix unx;
|
||||
struct netns_ipv4 ipv4;
|
||||
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
|
||||
#if IS_ENABLED(CONFIG_IPV6)
|
||||
struct netns_ipv6 ipv6;
|
||||
#endif
|
||||
#if defined(CONFIG_IP_DCCP) || defined(CONFIG_IP_DCCP_MODULE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue