* [jolsa-perf:bpf/tracing_multi_9 3/12] kernel/bpf/syscall.c:3497:42: error: incompatible pointer types passing 'struct bpf_tramp_node *' to parameter of type 'struct bpf_tramp_link *'
@ 2026-01-31 5:31 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-01-31 5:31 UTC (permalink / raw)
To: Jiri Olsa; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/tracing_multi_9
head: 4a1d38e3df06743886a06b547187aec8023ef27d
commit: 79e86aac9eaf3b5bdb4db339fb6082022ef69eb9 [3/12] bpf: Add struct bpf_tramp_node object
config: x86_64-randconfig-161-20260131 (https://download.01.org/0day-ci/archive/20260131/202601311315.nMWUIIfg-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
smatch version: v0.5.0-8994-gd50c5a4c
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260131/202601311315.nMWUIIfg-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/202601311315.nMWUIIfg-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from kernel/bpf/syscall.c:5:
include/linux/bpf.h:1544:51: warning: declaration of 'struct bpf_tramp_link' will not be visible outside of this function [-Wvisibility]
1544 | static inline int bpf_trampoline_link_prog(struct bpf_tramp_link *link,
| ^
include/linux/bpf.h:1550:53: warning: declaration of 'struct bpf_tramp_link' will not be visible outside of this function [-Wvisibility]
1550 | static inline int bpf_trampoline_unlink_prog(struct bpf_tramp_link *link,
| ^
>> kernel/bpf/syscall.c:3497:42: error: incompatible pointer types passing 'struct bpf_tramp_node *' to parameter of type 'struct bpf_tramp_link *' [-Werror,-Wincompatible-pointer-types]
3497 | WARN_ON_ONCE(bpf_trampoline_unlink_prog(&tr_link->link.node,
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/bug.h:120:25: note: expanded from macro 'WARN_ON_ONCE'
120 | int __ret_warn_on = !!(condition); \
| ^~~~~~~~~
include/linux/bpf.h:1550:69: note: passing argument to parameter 'link' here
1550 | static inline int bpf_trampoline_unlink_prog(struct bpf_tramp_link *link,
| ^
kernel/bpf/syscall.c:3731:33: error: incompatible pointer types passing 'struct bpf_tramp_node *' to parameter of type 'struct bpf_tramp_link *' [-Werror,-Wincompatible-pointer-types]
3731 | err = bpf_trampoline_link_prog(&link->link.node, tr, tgt_prog);
| ^~~~~~~~~~~~~~~~
include/linux/bpf.h:1544:67: note: passing argument to parameter 'link' here
1544 | static inline int bpf_trampoline_link_prog(struct bpf_tramp_link *link,
| ^
2 warnings and 2 errors generated.
vim +3497 kernel/bpf/syscall.c
3491
3492 static void bpf_tracing_link_release(struct bpf_link *link)
3493 {
3494 struct bpf_tracing_link *tr_link =
3495 container_of(link, struct bpf_tracing_link, link.link);
3496
> 3497 WARN_ON_ONCE(bpf_trampoline_unlink_prog(&tr_link->link.node,
3498 tr_link->trampoline,
3499 tr_link->tgt_prog));
3500
3501 bpf_trampoline_put(tr_link->trampoline);
3502
3503 /* tgt_prog is NULL if target is a kernel function */
3504 if (tr_link->tgt_prog)
3505 bpf_prog_put(tr_link->tgt_prog);
3506 }
3507
--
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-01-31 5:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-31 5:31 [jolsa-perf:bpf/tracing_multi_9 3/12] kernel/bpf/syscall.c:3497:42: error: incompatible pointer types passing 'struct bpf_tramp_node *' to parameter of type 'struct bpf_tramp_link *' 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.