]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_dup{4, 6}: fix build error when nf_conntrack disabled
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 2 Sep 2015 18:54:02 +0000 (20:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Sep 2015 23:28:06 +0000 (16:28 -0700)
commit443496becbedfbdcb623edbee40e7a74b4b9b25b
tree364e8440142fa32507c2c35788b1446c18375013
parenteeae11157a75ff49f3194d1066eb34dee7784420
netfilter: nf_dup{4, 6}: fix build error when nf_conntrack disabled

While testing various Kconfig options on another issue, I found that
the following one triggers as well on allmodconfig and nf_conntrack
disabled:

  net/ipv4/netfilter/nf_dup_ipv4.c: In function ‘nf_dup_ipv4’:
  net/ipv4/netfilter/nf_dup_ipv4.c:72:20: error: ‘nf_skb_duplicated’ undeclared (first use in this function)
    if (this_cpu_read(nf_skb_duplicated))
  [...]
  net/ipv6/netfilter/nf_dup_ipv6.c: In function ‘nf_dup_ipv6’:
  net/ipv6/netfilter/nf_dup_ipv6.c:66:20: error: ‘nf_skb_duplicated’ undeclared (first use in this function)
    if (this_cpu_read(nf_skb_duplicated))

Fix it by including directly the header where it is defined.

Fixes: 2f3dbd549632 ("netfilter: factor out packet duplication for IPv4/IPv6")
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/nf_dup_ipv4.c
net/ipv6/netfilter/nf_dup_ipv6.c