Messages in this thread | | | Date | Thu, 30 Sep 2021 14:39:37 +0800 | From | kernel test robot <> | Subject | [l1k:nft_egress_v5 4/5] net/netfilter/nfnetlink_hook.c:232:17: error: 'netdev' undeclared; did you mean 'net_eq'? |
| |
tree: https://github.com/l1k/linux nft_egress_v5 head: dfe0f89e58fa6f22032d805c1afa8209dc84e03b commit: 46bd81b602be7deb36db2aaa330a23cd01ce4cbe [4/5] netfilter: Introduce egress hook config: alpha-buildonly-randconfig-r001-20210929 (attached as .config) compiler: alpha-linux-gcc (GCC) 11.2.0 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 # https://github.com/l1k/linux/commit/46bd81b602be7deb36db2aaa330a23cd01ce4cbe git remote add l1k https://github.com/l1k/linux git fetch --no-tags l1k nft_egress_v5 git checkout 46bd81b602be7deb36db2aaa330a23cd01ce4cbe # save the attached .config to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=alpha SHELL=/bin/bash net/netfilter/
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
net/netfilter/nfnetlink_hook.c: In function 'nfnl_hook_entries_head': >> net/netfilter/nfnetlink_hook.c:232:17: error: 'netdev' undeclared (first use in this function); did you mean 'net_eq'? 232 | netdev = dev_get_by_name_rcu(net, dev); | ^~~~~~ | net_eq net/netfilter/nfnetlink_hook.c:232:17: note: each undeclared identifier is reported only once for each function it appears in
vim +232 net/netfilter/nfnetlink_hook.c
e2cf17d3774c323 Florian Westphal 2021-06-04 191 e2cf17d3774c323 Florian Westphal 2021-06-04 192 switch (pf) { e2cf17d3774c323 Florian Westphal 2021-06-04 193 case NFPROTO_IPV4: e2cf17d3774c323 Florian Westphal 2021-06-04 194 if (hook >= ARRAY_SIZE(net->nf.hooks_ipv4)) e2cf17d3774c323 Florian Westphal 2021-06-04 195 return ERR_PTR(-EINVAL); e2cf17d3774c323 Florian Westphal 2021-06-04 196 hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]); e2cf17d3774c323 Florian Westphal 2021-06-04 197 break; e2cf17d3774c323 Florian Westphal 2021-06-04 198 case NFPROTO_IPV6: e2cf17d3774c323 Florian Westphal 2021-06-04 199 if (hook >= ARRAY_SIZE(net->nf.hooks_ipv6)) e2cf17d3774c323 Florian Westphal 2021-06-04 200 return ERR_PTR(-EINVAL); 5302560bb49d38b Colin Ian King 2021-06-08 201 hook_head = rcu_dereference(net->nf.hooks_ipv6[hook]); e2cf17d3774c323 Florian Westphal 2021-06-04 202 break; e2cf17d3774c323 Florian Westphal 2021-06-04 203 case NFPROTO_ARP: e2cf17d3774c323 Florian Westphal 2021-06-04 204 #ifdef CONFIG_NETFILTER_FAMILY_ARP e2cf17d3774c323 Florian Westphal 2021-06-04 205 if (hook >= ARRAY_SIZE(net->nf.hooks_arp)) e2cf17d3774c323 Florian Westphal 2021-06-04 206 return ERR_PTR(-EINVAL); e2cf17d3774c323 Florian Westphal 2021-06-04 207 hook_head = rcu_dereference(net->nf.hooks_arp[hook]); e2cf17d3774c323 Florian Westphal 2021-06-04 208 #endif e2cf17d3774c323 Florian Westphal 2021-06-04 209 break; e2cf17d3774c323 Florian Westphal 2021-06-04 210 case NFPROTO_BRIDGE: e2cf17d3774c323 Florian Westphal 2021-06-04 211 #ifdef CONFIG_NETFILTER_FAMILY_BRIDGE e2cf17d3774c323 Florian Westphal 2021-06-04 212 if (hook >= ARRAY_SIZE(net->nf.hooks_bridge)) e2cf17d3774c323 Florian Westphal 2021-06-04 213 return ERR_PTR(-EINVAL); e2cf17d3774c323 Florian Westphal 2021-06-04 214 hook_head = rcu_dereference(net->nf.hooks_bridge[hook]); e2cf17d3774c323 Florian Westphal 2021-06-04 215 #endif e2cf17d3774c323 Florian Westphal 2021-06-04 216 break; e2cf17d3774c323 Florian Westphal 2021-06-04 217 #if IS_ENABLED(CONFIG_DECNET) e2cf17d3774c323 Florian Westphal 2021-06-04 218 case NFPROTO_DECNET: e2cf17d3774c323 Florian Westphal 2021-06-04 219 if (hook >= ARRAY_SIZE(net->nf.hooks_decnet)) e2cf17d3774c323 Florian Westphal 2021-06-04 220 return ERR_PTR(-EINVAL); e2cf17d3774c323 Florian Westphal 2021-06-04 221 hook_head = rcu_dereference(net->nf.hooks_decnet[hook]); e2cf17d3774c323 Florian Westphal 2021-06-04 222 break; e2cf17d3774c323 Florian Westphal 2021-06-04 223 #endif 46bd81b602be7de Lukas Wunner 2020-03-11 224 #if defined(CONFIG_NETFILTER_INGRESS) || defined(CONFIG_NETFILTER_EGRESS) e2cf17d3774c323 Florian Westphal 2021-06-04 225 case NFPROTO_NETDEV: 46bd81b602be7de Lukas Wunner 2020-03-11 226 if (hook >= NF_NETDEV_NUMHOOKS) e2cf17d3774c323 Florian Westphal 2021-06-04 227 return ERR_PTR(-EOPNOTSUPP); e2cf17d3774c323 Florian Westphal 2021-06-04 228 e2cf17d3774c323 Florian Westphal 2021-06-04 229 if (!dev) e2cf17d3774c323 Florian Westphal 2021-06-04 230 return ERR_PTR(-ENODEV); e2cf17d3774c323 Florian Westphal 2021-06-04 231 e2cf17d3774c323 Florian Westphal 2021-06-04 @232 netdev = dev_get_by_name_rcu(net, dev); e2cf17d3774c323 Florian Westphal 2021-06-04 233 if (!netdev) e2cf17d3774c323 Florian Westphal 2021-06-04 234 return ERR_PTR(-ENODEV); e2cf17d3774c323 Florian Westphal 2021-06-04 235
:::::: The code at line 232 was first introduced by commit :::::: e2cf17d3774c323ef6dab6e9f7c0cfc5e742afd9 netfilter: add new hook nfnl subsystem
:::::: TO: Florian Westphal <fw@strlen.de> :::::: CC: Pablo Neira Ayuso <pablo@netfilter.org>
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [unhandled content-type:application/gzip] | |