* [android-common:android13-5.15 1/1] net/bridge/br_input.c:232:9: error: implicit declaration of function 'nf_hook_state_init'; did you mean 'ethtool_stats_init'?
@ 2026-10-27 3:56 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-27 3:56 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
Hi Norihiko,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/common android13-5.15
head: 25504c55fe63ecca8633c10afcfdb58573e59571
commit: b37eb4523002250e2382e8c5e0d8380ad349c6b6 [1/1] ANDROID: KMI workaround for CONFIG_NETFILTER_FAMILY_BRIDGE
config: arm-randconfig-r2107-20261027 (https://download.01.org/0day-ci/archive/20261027/202610270452.4eGc30Yq-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261027/202610270452.4eGc30Yq-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610270452.4eGc30Yq-lkp@intel.com/
All errors (new ones prefixed by >>):
net/bridge/br_input.c: In function 'nf_hook_bridge_pre':
>> net/bridge/br_input.c:232:9: error: implicit declaration of function 'nf_hook_state_init'; did you mean 'ethtool_stats_init'? [-Werror=implicit-function-declaration]
232 | nf_hook_state_init(&state, NF_BR_PRE_ROUTING,
| ^~~~~~~~~~~~~~~~~~
| ethtool_stats_init
>> net/bridge/br_input.c:237:27: error: implicit declaration of function 'nf_hook_entry_hookfn' [-Werror=implicit-function-declaration]
237 | verdict = nf_hook_entry_hookfn(&e->hooks[i], skb, &state);
| ^~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for NETFILTER_FAMILY_BRIDGE
Depends on [n]: NET [=y] && INET [=n] && NETFILTER [=n]
Selected by [y]:
- GKI_HIDDEN_NET_CONFIGS [=y]
WARNING: unmet direct dependencies detected for BALLOON_COMPACTION
Depends on [n]: COMPACTION [=n] && MEMORY_BALLOON [=y]
Selected by [y]:
- GKI_HIDDEN_MM_CONFIGS [=y]
vim +232 net/bridge/br_input.c
971502d77faa50 Florian Westphal 2019-04-11 227
b37eb452300225 Norihiko Hama 2023-12-15 228 e = rcu_dereference(get_nf_hooks_bridge(net)[NF_BR_PRE_ROUTING]);
971502d77faa50 Florian Westphal 2019-04-11 229 if (!e)
971502d77faa50 Florian Westphal 2019-04-11 230 goto frame_finish;
971502d77faa50 Florian Westphal 2019-04-11 231
971502d77faa50 Florian Westphal 2019-04-11 @232 nf_hook_state_init(&state, NF_BR_PRE_ROUTING,
971502d77faa50 Florian Westphal 2019-04-11 233 NFPROTO_BRIDGE, skb->dev, NULL, NULL,
971502d77faa50 Florian Westphal 2019-04-11 234 net, br_handle_frame_finish);
971502d77faa50 Florian Westphal 2019-04-11 235
971502d77faa50 Florian Westphal 2019-04-11 236 for (i = 0; i < e->num_hook_entries; i++) {
971502d77faa50 Florian Westphal 2019-04-11 @237 verdict = nf_hook_entry_hookfn(&e->hooks[i], skb, &state);
971502d77faa50 Florian Westphal 2019-04-11 238 switch (verdict & NF_VERDICT_MASK) {
971502d77faa50 Florian Westphal 2019-04-11 239 case NF_ACCEPT:
223fd0adfa8af3 Florian Westphal 2019-04-11 240 if (BR_INPUT_SKB_CB(skb)->br_netfilter_broute) {
223fd0adfa8af3 Florian Westphal 2019-04-11 241 *pskb = skb;
223fd0adfa8af3 Florian Westphal 2019-04-11 242 return RX_HANDLER_PASS;
223fd0adfa8af3 Florian Westphal 2019-04-11 243 }
971502d77faa50 Florian Westphal 2019-04-11 244 break;
971502d77faa50 Florian Westphal 2019-04-11 245 case NF_DROP:
971502d77faa50 Florian Westphal 2019-04-11 246 kfree_skb(skb);
971502d77faa50 Florian Westphal 2019-04-11 247 return RX_HANDLER_CONSUMED;
971502d77faa50 Florian Westphal 2019-04-11 248 case NF_QUEUE:
0d9cb300acad29 Florian Westphal 2019-07-02 249 ret = nf_queue(skb, &state, i, verdict);
971502d77faa50 Florian Westphal 2019-04-11 250 if (ret == 1)
971502d77faa50 Florian Westphal 2019-04-11 251 continue;
971502d77faa50 Florian Westphal 2019-04-11 252 return RX_HANDLER_CONSUMED;
971502d77faa50 Florian Westphal 2019-04-11 253 default: /* STOLEN */
971502d77faa50 Florian Westphal 2019-04-11 254 return RX_HANDLER_CONSUMED;
971502d77faa50 Florian Westphal 2019-04-11 255 }
971502d77faa50 Florian Westphal 2019-04-11 256 }
971502d77faa50 Florian Westphal 2019-04-11 257 frame_finish:
971502d77faa50 Florian Westphal 2019-04-11 258 net = dev_net(skb->dev);
971502d77faa50 Florian Westphal 2019-04-11 259 br_handle_frame_finish(net, NULL, skb);
971502d77faa50 Florian Westphal 2019-04-11 260 #else
971502d77faa50 Florian Westphal 2019-04-11 261 br_handle_frame_finish(dev_net(skb->dev), NULL, skb);
971502d77faa50 Florian Westphal 2019-04-11 262 #endif
971502d77faa50 Florian Westphal 2019-04-11 263 return RX_HANDLER_CONSUMED;
971502d77faa50 Florian Westphal 2019-04-11 264 }
971502d77faa50 Florian Westphal 2019-04-11 265
:::::: The code at line 232 was first introduced by commit
:::::: 971502d77faa50a37c89bc6d172450294ad9a5fd bridge: netfilter: unroll NF_HOOK helper in bridge input path
:::::: TO: Florian Westphal <fw@strlen.de>
:::::: CC: Pablo Neira Ayuso <pablo@netfilter.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-27 3:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-27 3:56 [android-common:android13-5.15 1/1] net/bridge/br_input.c:232:9: error: implicit declaration of function 'nf_hook_state_init'; did you mean 'ethtool_stats_init'? kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.