* [android-common:android14-6.1 1/1] net/bridge/br_input.c:250:2: error: call to undeclared function 'nf_hook_state_init'; ISO C99 and later do not support implicit function declarations
@ 2024-01-17 19:49 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2024-01-17 19:49 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
tree: https://android.googlesource.com/kernel/common android14-6.1
head: 899194d7e9095594e35bb0097dc0e3e2c7d8a0e6
commit: bc4d82ee40515f0c770b28d0dc4fa532a2b1850e [1/1] ANDROID: KMI workaround for CONFIG_NETFILTER_FAMILY_BRIDGE
config: x86_64-randconfig-123-20240117 (https://download.01.org/0day-ci/archive/20240118/202401180303.MilqE8p3-lkp@intel.com/config)
compiler: ClangBuiltLinux clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240118/202401180303.MilqE8p3-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/202401180303.MilqE8p3-lkp@intel.com/
All errors (new ones prefixed by >>):
>> net/bridge/br_input.c:250:2: error: call to undeclared function 'nf_hook_state_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
250 | nf_hook_state_init(&state, NF_BR_PRE_ROUTING,
| ^
net/bridge/br_input.c:250:2: note: did you mean 'ethtool_stats_init'?
include/linux/ethtool.h:281:20: note: 'ethtool_stats_init' declared here
281 | static inline void ethtool_stats_init(u64 *stats, unsigned int n)
| ^
>> net/bridge/br_input.c:255:13: error: call to undeclared function 'nf_hook_entry_hookfn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
255 | verdict = nf_hook_entry_hookfn(&e->hooks[i], skb, &state);
| ^
2 errors generated.
Kconfig warnings: (for reference only)
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]
vim +/nf_hook_state_init +250 net/bridge/br_input.c
971502d77faa50 Florian Westphal 2019-04-11 245
bc4d82ee40515f Norihiko Hama 2023-12-15 246 e = rcu_dereference(get_nf_hooks_bridge(net)[NF_BR_PRE_ROUTING]);
971502d77faa50 Florian Westphal 2019-04-11 247 if (!e)
971502d77faa50 Florian Westphal 2019-04-11 248 goto frame_finish;
971502d77faa50 Florian Westphal 2019-04-11 249
971502d77faa50 Florian Westphal 2019-04-11 @250 nf_hook_state_init(&state, NF_BR_PRE_ROUTING,
971502d77faa50 Florian Westphal 2019-04-11 251 NFPROTO_BRIDGE, skb->dev, NULL, NULL,
971502d77faa50 Florian Westphal 2019-04-11 252 net, br_handle_frame_finish);
971502d77faa50 Florian Westphal 2019-04-11 253
971502d77faa50 Florian Westphal 2019-04-11 254 for (i = 0; i < e->num_hook_entries; i++) {
971502d77faa50 Florian Westphal 2019-04-11 @255 verdict = nf_hook_entry_hookfn(&e->hooks[i], skb, &state);
971502d77faa50 Florian Westphal 2019-04-11 256 switch (verdict & NF_VERDICT_MASK) {
971502d77faa50 Florian Westphal 2019-04-11 257 case NF_ACCEPT:
223fd0adfa8af3 Florian Westphal 2019-04-11 258 if (BR_INPUT_SKB_CB(skb)->br_netfilter_broute) {
223fd0adfa8af3 Florian Westphal 2019-04-11 259 *pskb = skb;
223fd0adfa8af3 Florian Westphal 2019-04-11 260 return RX_HANDLER_PASS;
223fd0adfa8af3 Florian Westphal 2019-04-11 261 }
971502d77faa50 Florian Westphal 2019-04-11 262 break;
971502d77faa50 Florian Westphal 2019-04-11 263 case NF_DROP:
971502d77faa50 Florian Westphal 2019-04-11 264 kfree_skb(skb);
971502d77faa50 Florian Westphal 2019-04-11 265 return RX_HANDLER_CONSUMED;
971502d77faa50 Florian Westphal 2019-04-11 266 case NF_QUEUE:
0d9cb300acad29 Florian Westphal 2019-07-02 267 ret = nf_queue(skb, &state, i, verdict);
971502d77faa50 Florian Westphal 2019-04-11 268 if (ret == 1)
971502d77faa50 Florian Westphal 2019-04-11 269 continue;
971502d77faa50 Florian Westphal 2019-04-11 270 return RX_HANDLER_CONSUMED;
971502d77faa50 Florian Westphal 2019-04-11 271 default: /* STOLEN */
971502d77faa50 Florian Westphal 2019-04-11 272 return RX_HANDLER_CONSUMED;
971502d77faa50 Florian Westphal 2019-04-11 273 }
971502d77faa50 Florian Westphal 2019-04-11 274 }
971502d77faa50 Florian Westphal 2019-04-11 275 frame_finish:
971502d77faa50 Florian Westphal 2019-04-11 276 net = dev_net(skb->dev);
971502d77faa50 Florian Westphal 2019-04-11 277 br_handle_frame_finish(net, NULL, skb);
971502d77faa50 Florian Westphal 2019-04-11 278 #else
971502d77faa50 Florian Westphal 2019-04-11 279 br_handle_frame_finish(dev_net(skb->dev), NULL, skb);
971502d77faa50 Florian Westphal 2019-04-11 280 #endif
971502d77faa50 Florian Westphal 2019-04-11 281 return RX_HANDLER_CONSUMED;
971502d77faa50 Florian Westphal 2019-04-11 282 }
971502d77faa50 Florian Westphal 2019-04-11 283
:::::: The code at line 250 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] 2+ messages in thread
* [android-common:android14-6.1 1/1] net/bridge/br_input.c:250:2: error: call to undeclared function 'nf_hook_state_init'; ISO C99 and later do not support implicit function declarations
@ 2024-09-25 13:33 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2024-09-25 13:33 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
tree: https://android.googlesource.com/kernel/common android14-6.1
head: 03b93dc707ed9ffeff2aac734f578ba445b5f764
commit: bc4d82ee40515f0c770b28d0dc4fa532a2b1850e [1/1] ANDROID: KMI workaround for CONFIG_NETFILTER_FAMILY_BRIDGE
config: x86_64-randconfig-073-20240925 (https://download.01.org/0day-ci/archive/20240925/202409252148.BfpmlLqx-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240925/202409252148.BfpmlLqx-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/202409252148.BfpmlLqx-lkp@intel.com/
All errors (new ones prefixed by >>):
>> net/bridge/br_input.c:250:2: error: call to undeclared function 'nf_hook_state_init'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
nf_hook_state_init(&state, NF_BR_PRE_ROUTING,
^
net/bridge/br_input.c:250:2: note: did you mean 'ethtool_stats_init'?
include/linux/ethtool.h:281:20: note: 'ethtool_stats_init' declared here
static inline void ethtool_stats_init(u64 *stats, unsigned int n)
^
>> net/bridge/br_input.c:255:13: error: call to undeclared function 'nf_hook_entry_hookfn'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
verdict = nf_hook_entry_hookfn(&e->hooks[i], skb, &state);
^
2 errors generated.
Kconfig warnings: (for reference only)
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]
vim +/nf_hook_state_init +250 net/bridge/br_input.c
971502d77faa50 Florian Westphal 2019-04-11 245
bc4d82ee40515f Norihiko Hama 2023-12-15 246 e = rcu_dereference(get_nf_hooks_bridge(net)[NF_BR_PRE_ROUTING]);
971502d77faa50 Florian Westphal 2019-04-11 247 if (!e)
971502d77faa50 Florian Westphal 2019-04-11 248 goto frame_finish;
971502d77faa50 Florian Westphal 2019-04-11 249
971502d77faa50 Florian Westphal 2019-04-11 @250 nf_hook_state_init(&state, NF_BR_PRE_ROUTING,
971502d77faa50 Florian Westphal 2019-04-11 251 NFPROTO_BRIDGE, skb->dev, NULL, NULL,
971502d77faa50 Florian Westphal 2019-04-11 252 net, br_handle_frame_finish);
971502d77faa50 Florian Westphal 2019-04-11 253
971502d77faa50 Florian Westphal 2019-04-11 254 for (i = 0; i < e->num_hook_entries; i++) {
971502d77faa50 Florian Westphal 2019-04-11 @255 verdict = nf_hook_entry_hookfn(&e->hooks[i], skb, &state);
971502d77faa50 Florian Westphal 2019-04-11 256 switch (verdict & NF_VERDICT_MASK) {
971502d77faa50 Florian Westphal 2019-04-11 257 case NF_ACCEPT:
223fd0adfa8af3 Florian Westphal 2019-04-11 258 if (BR_INPUT_SKB_CB(skb)->br_netfilter_broute) {
223fd0adfa8af3 Florian Westphal 2019-04-11 259 *pskb = skb;
223fd0adfa8af3 Florian Westphal 2019-04-11 260 return RX_HANDLER_PASS;
223fd0adfa8af3 Florian Westphal 2019-04-11 261 }
971502d77faa50 Florian Westphal 2019-04-11 262 break;
971502d77faa50 Florian Westphal 2019-04-11 263 case NF_DROP:
971502d77faa50 Florian Westphal 2019-04-11 264 kfree_skb(skb);
971502d77faa50 Florian Westphal 2019-04-11 265 return RX_HANDLER_CONSUMED;
971502d77faa50 Florian Westphal 2019-04-11 266 case NF_QUEUE:
0d9cb300acad29 Florian Westphal 2019-07-02 267 ret = nf_queue(skb, &state, i, verdict);
971502d77faa50 Florian Westphal 2019-04-11 268 if (ret == 1)
971502d77faa50 Florian Westphal 2019-04-11 269 continue;
971502d77faa50 Florian Westphal 2019-04-11 270 return RX_HANDLER_CONSUMED;
971502d77faa50 Florian Westphal 2019-04-11 271 default: /* STOLEN */
971502d77faa50 Florian Westphal 2019-04-11 272 return RX_HANDLER_CONSUMED;
971502d77faa50 Florian Westphal 2019-04-11 273 }
971502d77faa50 Florian Westphal 2019-04-11 274 }
971502d77faa50 Florian Westphal 2019-04-11 275 frame_finish:
971502d77faa50 Florian Westphal 2019-04-11 276 net = dev_net(skb->dev);
971502d77faa50 Florian Westphal 2019-04-11 277 br_handle_frame_finish(net, NULL, skb);
971502d77faa50 Florian Westphal 2019-04-11 278 #else
971502d77faa50 Florian Westphal 2019-04-11 279 br_handle_frame_finish(dev_net(skb->dev), NULL, skb);
971502d77faa50 Florian Westphal 2019-04-11 280 #endif
971502d77faa50 Florian Westphal 2019-04-11 281 return RX_HANDLER_CONSUMED;
971502d77faa50 Florian Westphal 2019-04-11 282 }
971502d77faa50 Florian Westphal 2019-04-11 283
:::::: The code at line 250 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] 2+ messages in thread
end of thread, other threads:[~2024-09-25 13:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-25 13:33 [android-common:android14-6.1 1/1] net/bridge/br_input.c:250:2: error: call to undeclared function 'nf_hook_state_init'; ISO C99 and later do not support implicit function declarations kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2024-01-17 19:49 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.