History

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)

Jeremy Sowden committed 7 years ago

Commit 25d7cbc1 parent 16b26cd4 files · +5 −5Browse files

Showing the changes to include/linux (2 of 4 files). Show all

Unified · Split

2 files
  1. include/linux/netfilter.h +1 −1
  2. include/linux/netfilter/ipset/ip_set_getport.h +1 −1
include/linux/netfilter.h+1−1
@@ -422,7 +422,7 @@ nf_nat_decode_session(struct sk_buff *skb, struct flowi *fl, u_int8_t family) · 421 unmodified lines
422422 }
423423 #endif /*CONFIG_NETFILTER*/
424424
425−#if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE)
425+#if IS_ENABLED(CONFIG_NF_CONNTRACK)
426426 #include <linux/netfilter/nf_conntrack_zones_common.h>
427427
428428 extern void (*ip_ct_attach)(struct sk_buff *, const struct sk_buff *) __rcu;
include/linux/netfilter/ipset/ip_set_getport.h+1−1
@@ -9,7 +9,7 @@ · 8 unmodified lines
99 extern bool ip_set_get_ip4_port(const struct sk_buff *skb, bool src,
1010 __be16 *port, u8 *proto);
1111
12−#if defined(CONFIG_IP6_NF_IPTABLES) || defined(CONFIG_IP6_NF_IPTABLES_MODULE)
12+#if IS_ENABLED(CONFIG_IP6_NF_IPTABLES)
1313 extern bool ip_set_get_ip6_port(const struct sk_buff *skb, bool src,
1414 __be16 *port, u8 *proto);
1515 #else

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t