[netfilter-nf-next:master 9/12] net/netfilter/nf_conntrack_core.c:670:19: error: no member named 'ecache' in 'struct nf_conntrack_net'
From: kernel test robot
Date: Thu Mar 03 2022 - 07:24:00 EST
tree: git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git master
head: 25485ffb54ac073e82957218404e303469477c2f
commit: 3ad61edaa5ac46811b4ea07a994428ead31e7468 [9/12] netfilter: conntrack: remove the percpu dying list
config: riscv-randconfig-r042-20220303 (https://download.01.org/0day-ci/archive/20220303/202203032033.frsNjH8R-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git/commit/?id=3ad61edaa5ac46811b4ea07a994428ead31e7468
git remote add netfilter-nf-next git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git
git fetch --no-tags netfilter-nf-next master
git checkout 3ad61edaa5ac46811b4ea07a994428ead31e7468
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash net/netfilter/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All errors (new ones prefixed by >>):
>> net/netfilter/nf_conntrack_core.c:670:19: error: no member named 'ecache' in 'struct nf_conntrack_net'
spin_lock(&cnet->ecache.dying_lock);
~~~~ ^
net/netfilter/nf_conntrack_core.c:672:13: error: no member named 'ecache' in 'struct nf_conntrack_net'
&cnet->ecache.dying_list);
~~~~ ^
net/netfilter/nf_conntrack_core.c:673:21: error: no member named 'ecache' in 'struct nf_conntrack_net'
spin_unlock(&cnet->ecache.dying_lock);
~~~~ ^
3 errors generated.
vim +670 net/netfilter/nf_conntrack_core.c
dd7669a92c6066 Pablo Neira Ayuso 2009-06-13 665
38a419ee4e646c Florian Westphal 2022-02-24 666 static void nf_ct_add_to_ecache_list(struct nf_conn *ct)
38a419ee4e646c Florian Westphal 2022-02-24 667 {
38a419ee4e646c Florian Westphal 2022-02-24 668 struct nf_conntrack_net *cnet = nf_ct_pernet(nf_ct_net(ct));
38a419ee4e646c Florian Westphal 2022-02-24 669
38a419ee4e646c Florian Westphal 2022-02-24 @670 spin_lock(&cnet->ecache.dying_lock);
38a419ee4e646c Florian Westphal 2022-02-24 671 hlist_nulls_add_head_rcu(&ct->tuplehash[IP_CT_DIR_ORIGINAL].hnnode,
38a419ee4e646c Florian Westphal 2022-02-24 672 &cnet->ecache.dying_list);
38a419ee4e646c Florian Westphal 2022-02-24 673 spin_unlock(&cnet->ecache.dying_lock);
38a419ee4e646c Florian Westphal 2022-02-24 674 }
38a419ee4e646c Florian Westphal 2022-02-24 675
:::::: The code at line 670 was first introduced by commit
:::::: 38a419ee4e646c1a6427f98717ad0bfac9762607 netfilter: ecache: use dedicated list for event redelivery
:::::: TO: Florian Westphal <fw@xxxxxxxxx>
:::::: CC: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx