net/netfilter/xt_TEE.c:48: undefined reference to `nf_dup_ipv6'

From: kbuild test robot
Date: Thu Oct 18 2018 - 09:14:14 EST


Hi Máté,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fa520c47eaa15b9baa8ad66ac18da4a31679693b
commit: 5d400a4933e867dbc3706023c8ed55d364c233ed netfilter: Kconfig: Change select IPv6 dependencies
date: 3 months ago
config: x86_64-randconfig-h0-10181100 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout 5d400a4933e867dbc3706023c8ed55d364c233ed
# save the attached .config to linux build tree
make ARCH=x86_64

All errors (new ones prefixed by >>):

net/netfilter/xt_TEE.o: In function `tee_tg6':
>> net/netfilter/xt_TEE.c:48: undefined reference to `nf_dup_ipv6'

vim +48 net/netfilter/xt_TEE.c

e281b1989 Jan Engelhardt 2010-04-19 40
5d400a493 Máté Eckl 2018-07-10 41 #if IS_ENABLED(CONFIG_IP6_NF_IPTABLES)
e281b1989 Jan Engelhardt 2010-04-19 42 static unsigned int
4b560b447 Jan Engelhardt 2009-07-05 43 tee_tg6(struct sk_buff *skb, const struct xt_action_param *par)
e281b1989 Jan Engelhardt 2010-04-19 44 {
e281b1989 Jan Engelhardt 2010-04-19 45 const struct xt_tee_tginfo *info = par->targinfo;
45efccdbe Eric Dumazet 2015-10-19 46 int oif = info->priv ? info->priv->oif : 0;
e281b1989 Jan Engelhardt 2010-04-19 47
613dbd957 Pablo Neira Ayuso 2016-11-03 @48 nf_dup_ipv6(xt_net(par), skb, xt_hooknum(par), &info->gw.in6, oif);
e281b1989 Jan Engelhardt 2010-04-19 49
e281b1989 Jan Engelhardt 2010-04-19 50 return XT_CONTINUE;
e281b1989 Jan Engelhardt 2010-04-19 51 }
dfd56b8b3 Eric Dumazet 2011-12-10 52 #endif
e281b1989 Jan Engelhardt 2010-04-19 53

:::::: The code at line 48 was first introduced by commit
:::::: 613dbd95723aee7abd16860745691b6c7bda20dc netfilter: x_tables: move hook state into xt_action_param structure

:::::: TO: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>
:::::: CC: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip