aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/netfilter/ipset
diff options
context:
space:
mode:
authorJeremy Sowden <jeremy@azazel.net>2019-09-13 09:13:11 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2019-09-13 12:47:09 +0200
commit25d7cbcd2bb5d919b9ba6fcdfe788e72c2df7e6e (patch)
tree3e8af8ab67f09c960c6259c42dc9c92e8054e1c7 /include/linux/netfilter/ipset
parentnetfilter: conntrack: use consistent style when defining inline functions (diff)
downloadwireguard-linux-25d7cbcd2bb5d919b9ba6fcdfe788e72c2df7e6e.tar.xz
wireguard-linux-25d7cbcd2bb5d919b9ba6fcdfe788e72c2df7e6e.zip
netfilter: replace defined(CONFIG...) || defined(CONFIG...MODULE) with IS_ENABLED(CONFIG...).
A few headers contain instances of: #if defined(CONFIG_XXX) or defined(CONFIG_XXX_MODULE) Replace them with: #if IS_ENABLED(CONFIG_XXX) Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/linux/netfilter/ipset')
-rw-r--r--include/linux/netfilter/ipset/ip_set_getport.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netfilter/ipset/ip_set_getport.h b/include/linux/netfilter/ipset/ip_set_getport.h
index a906df06948b..d74cd112b88a 100644
--- a/include/linux/netfilter/ipset/ip_set_getport.h
+++ b/include/linux/netfilter/ipset/ip_set_getport.h
@@ -9,7 +9,7 @@
extern bool ip_set_get_ip4_port(const struct sk_buff *skb, bool src,
__be16 *port, u8 *proto);
-#if defined(CONFIG_IP6_NF_IPTABLES) || defined(CONFIG_IP6_NF_IPTABLES_MODULE)
+#if IS_ENABLED(CONFIG_IP6_NF_IPTABLES)
extern bool ip_set_get_ip6_port(const struct sk_buff *skb, bool src,
__be16 *port, u8 *proto);
#else