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:
committed by
David S. Miller
parent
1ded132d4c
commit
dfd56b8b38
@@ -71,7 +71,7 @@
|
||||
#include <linux/jiffies.h>
|
||||
#include <linux/idr.h>
|
||||
|
||||
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
|
||||
#if IS_ENABLED(CONFIG_IPV6)
|
||||
#include <net/ipv6.h>
|
||||
#include <net/ip6_route.h>
|
||||
#endif
|
||||
@@ -383,7 +383,7 @@ static inline void sctp_sysctl_unregister(void) { return; }
|
||||
/* Size of Supported Address Parameter for 'x' address types. */
|
||||
#define SCTP_SAT_LEN(x) (sizeof(struct sctp_paramhdr) + (x) * sizeof(__u16))
|
||||
|
||||
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
|
||||
#if IS_ENABLED(CONFIG_IPV6)
|
||||
|
||||
void sctp_v6_pf_init(void);
|
||||
void sctp_v6_pf_exit(void);
|
||||
|
||||
Reference in New Issue
Block a user