* Re: [PATCH] bpf: fix TCX/netkit detach permissions when prog FD isn't given
[not found] <20260126173431.19825-1-ggonnet.linux@gmail.com>
@ 2026-01-27 3:12 ` kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-01-27 3:12 UTC (permalink / raw)
To: Guillaume GONNET, daniel
Cc: llvm, oe-kbuild-all, ast, bpf, ggonnet.linux, john.fastabend,
martin.lau
Hi Guillaume,
kernel test robot noticed the following build errors:
[auto build test ERROR on bpf-next/net]
[also build test ERROR on bpf/master linus/master v6.19-rc7 next-20260126]
[cannot apply to bpf-next/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Guillaume-GONNET/bpf-fix-TCX-netkit-detach-permissions-when-prog-FD-isn-t-given/20260127-013722
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git net
patch link: https://lore.kernel.org/r/20260126173431.19825-1-ggonnet.linux%40gmail.com
patch subject: [PATCH] bpf: fix TCX/netkit detach permissions when prog FD isn't given
config: powerpc-pcm030_defconfig (https://download.01.org/0day-ci/archive/20260127/202601271136.K6L9UhO2-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 9b8addffa70cee5b2acc5454712d9cf78ce45710)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260127/202601271136.K6L9UhO2-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/202601271136.K6L9UhO2-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from net/core/dev.c:114:
In file included from include/net/tcx.h:7:
>> include/linux/bpf_mprog.h:348:10: error: call to undeclared function 'bpf_net_capable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
348 | return bpf_net_capable();
| ^
include/linux/bpf_mprog.h:348:10: note: did you mean 'sk_net_capable'?
include/net/sock.h:3024:6: note: 'sk_net_capable' declared here
3024 | bool sk_net_capable(const struct sock *sk, int cap);
| ^
1 error generated.
vim +/bpf_net_capable +348 include/linux/bpf_mprog.h
343
344 static inline bool bpf_mprog_detach_empty(enum bpf_prog_type type)
345 {
346 switch (type) {
347 case BPF_PROG_TYPE_SCHED_CLS:
> 348 return bpf_net_capable();
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread