Skip to content

Commit 7f0de0e

Browse files
committed
fix: detect modularized CONFIG_BRIDGE_NETFILTER
1 parent b049e91 commit 7f0de0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ static inline int is_vlan_dev(struct net_device *dev)
692692
}
693693
#endif
694694

695-
#ifdef CONFIG_BRIDGE_NETFILTER
695+
#if IS_ENABLED(CONFIG_BRIDGE_NETFILTER)
696696
# ifndef HAVE_NF_BRIDGE_INFO_GET
697697
static inline struct nf_bridge_info *
698698
nf_bridge_info_get(const struct sk_buff *skb)

gen_compat_def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ kbuild_test_struct timeval linux/ktime.h
116116
kbuild_test_struct proc_ops linux/proc_fs.h
117117
# No since v5.1, but present in CentOS-8's 4.18.0-227
118118
kbuild_test_symbol synchronize_sched linux/rcupdate.h
119-
# Fails on 3.10.0-957.10.1.el7.x86_64
119+
# No since 5, but present in include/net/netfilter/br_netfilter.h >= linux v4.2 and < 5 (non-backports)
120120
kbuild_test_symbol nf_bridge_info_get linux/netfilter_bridge.h
121121
# Stumbled on 5.9
122122
kbuild_test_struct vlan_dev_priv linux/if_vlan.h

0 commit comments

Comments
 (0)