* [android-common:android13-5.15 0/2] net/bridge/br_input.c:232:2: error: implicit declaration of function 'nf_hook_state_init'
@ 2026-09-19 9:21 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-19 9:21 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: 77804d3596695c7b85fe038c81d9580283ffd2ca
commit: b37eb4523002250e2382e8c5e0d8380ad349c6b6 [0/2] ANDROID: KMI workaround for CONFIG_NETFILTER_FAMILY_BRIDGE
config: i386-buildonly-randconfig-1001-20260919 (https://download.01.org/0day-ci/archive/20260919/202609191742.gW74CVpg-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 05d706e9a816dbf9eff31f47869f53d6fe796089)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260919/202609191742.gW74CVpg-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/202609191742.gW74CVpg-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from net/bridge/br_input.c:23:
In file included from net/bridge/br_private.h:17:
include/net/ip6_fib.h:278:10: warning: default initialization of an object of type 'typeof (f6i->expires)' (aka 'const unsigned long') leaves the object uninitialized [-Wdefault-const-init-var-unsafe]
278 | return time_after(jiffies, f6i->expires);
| ^
include/linux/jiffies.h:106:3: note: expanded from macro 'time_after'
106 | typecheck(unsigned long, b) && \
| ^
include/linux/typecheck.h:11:12: note: expanded from macro 'typecheck'
11 | typeof(x) __dummy2; \
| ^
>> net/bridge/br_input.c:232:2: error: implicit declaration of function 'nf_hook_state_init' [-Werror,-Wimplicit-function-declaration]
232 | nf_hook_state_init(&state, NF_BR_PRE_ROUTING,
| ^
net/bridge/br_input.c:232:2: note: did you mean 'ethtool_stats_init'?
include/linux/ethtool.h:254:20: note: 'ethtool_stats_init' declared here
254 | static inline void ethtool_stats_init(u64 *stats, unsigned int n)
| ^
net/bridge/br_input.c:237:13: error: implicit declaration of function 'nf_hook_entry_hookfn' [-Werror,-Wimplicit-function-declaration]
237 | verdict = nf_hook_entry_hookfn(&e->hooks[i], skb, &state);
| ^
1 warning and 2 errors generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for PHYLINK
Depends on [n]: NETDEVICES [=n]
Selected by [y]:
- GKI_HIDDEN_ETHERNET_CONFIGS [=y]
WARNING: unmet direct dependencies detected for WEXT_PROC
Depends on [n]: NET [=y] && WIRELESS [=n] && PROC_FS [=y] && WEXT_CORE [=y]
Selected by [y]:
- GKI_LEGACY_WEXT_ALLCONFIG [=y]
WARNING: unmet direct dependencies detected for WEXT_PRIV
Depends on [n]: NET [=y] && WIRELESS [=n]
Selected by [y]:
- GKI_LEGACY_WEXT_ALLCONFIG [=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]
WARNING: unmet direct dependencies detected for WEXT_SPY
Depends on [n]: NET [=y] && WIRELESS [=n]
Selected by [y]:
- GKI_LEGACY_WEXT_ALLCONFIG [=y]
WARNING: unmet direct dependencies detected for NETFILTER_FAMILY_BRIDGE
Depends on [n]: NET [=y] && INET [=y] && NETFILTER [=n]
Selected by [y]:
- GKI_HIDDEN_NET_CONFIGS [=y]
WARNING: unmet direct dependencies detected for WIRELESS_EXT
Depends on [n]: NET [=y] && WIRELESS [=n]
Selected by [y]:
- GKI_LEGACY_WEXT_ALLCONFIG [=y]
WARNING: unmet direct dependencies detected for WEXT_CORE
Depends on [n]: NET [=y] && WIRELESS [=n] && (CFG80211_WEXT [=n] || WIRELESS_EXT [=y])
Selected by [y]:
- GKI_LEGACY_WEXT_ALLCONFIG [=y]
WARNING: unmet direct dependencies detected for SND_JACK
Depends on [n]: SOUND [=n] && !UML && SND [=n]
Selected by [y]:
- GKI_HIDDEN_SND_CONFIGS [=y]
WARNING: unmet direct dependencies detected for SND_VMASTER
Depends on [n]: SOUND [=n] && !UML && SND [=n]
Selected by [y]:
- GKI_HIDDEN_SND_CONFIGS [=y]
WARNING: unmet direct dependencies detected for SND_PCM_IEC958
Depends on [n]: SOUND [=n] && !UML && SND [=n]
Selected by [y]:
- GKI_HIDDEN_SND_SOC_CONFIGS [=y]
WARNING: unmet direct dependencies detected for SND_JACK_INPUT_DEV
Depends on [n]: SOUND [=n] && !UML && SND [=n] && SND_JACK [=y]
Selected by [y]:
- GKI_HIDDEN_SND_CONFIGS [=y]
WARNING: unmet direct dependencies detected for SND_PCM_ELD
Depends on [n]: SOUND [=n] && !UML && SND [=n]
Selected by [y]:
- GKI_HIDDEN_SND_CONFIGS [=y]
vim +/nf_hook_state_init +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-09-19 9:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-19 9:21 [android-common:android13-5.15 0/2] net/bridge/br_input.c:232:2: error: implicit declaration of function 'nf_hook_state_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.