* [jolsa-perf:bpf/tracing_multi_5 6/23] kernel/bpf/syscall.c:3514:49: error: passing argument 1 of 'bpf_trampoline_unlink_prog' from incompatible pointer type
@ 2026-02-25 17:57 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-02-25 17:57 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_5
head: 2e9ff5967a4f3cb4d96c1fd04944036d9961099d
commit: 8f7a9302fcb5575b82514340a6ceed2c5592a014 [6/23] bpf: Add struct bpf_tramp_node object
config: csky-randconfig-r072-20260226 (https://download.01.org/0day-ci/archive/20260226/202602260113.doKuRGW0-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 15.2.0
smatch version: v0.5.0-8994-gd50c5a4c
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260226/202602260113.doKuRGW0-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/202602260113.doKuRGW0-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from kernel/bpf/syscall.c:5:
include/linux/bpf.h:1543:51: warning: 'struct bpf_tramp_link' declared inside parameter list will not be visible outside of this definition or declaration
1543 | static inline int bpf_trampoline_link_prog(struct bpf_tramp_link *link,
| ^~~~~~~~~~~~~~
include/linux/bpf.h:1549:53: warning: 'struct bpf_tramp_link' declared inside parameter list will not be visible outside of this definition or declaration
1549 | static inline int bpf_trampoline_unlink_prog(struct bpf_tramp_link *link,
| ^~~~~~~~~~~~~~
In file included from include/asm-generic/bug.h:7,
from arch/csky/include/asm/bug.h:18,
from include/linux/bug.h:5,
from include/linux/alloc_tag.h:8,
from include/linux/workqueue.h:9,
from include/linux/bpf.h:11:
kernel/bpf/syscall.c: In function 'bpf_tracing_link_release':
>> kernel/bpf/syscall.c:3514:49: error: passing argument 1 of 'bpf_trampoline_unlink_prog' from incompatible pointer type [-Wincompatible-pointer-types]
3514 | WARN_ON_ONCE(bpf_trampoline_unlink_prog(&tr_link->link.node,
| ^~~~~~~~~~~~~~~~~~~
| |
| struct bpf_tramp_node *
include/linux/once_lite.h:28:41: note: in definition of macro 'DO_ONCE_LITE_IF'
28 | bool __ret_do_once = !!(condition); \
| ^~~~~~~~~
kernel/bpf/syscall.c:3514:9: note: in expansion of macro 'WARN_ON_ONCE'
3514 | WARN_ON_ONCE(bpf_trampoline_unlink_prog(&tr_link->link.node,
| ^~~~~~~~~~~~
include/linux/bpf.h:1549:69: note: expected 'struct bpf_tramp_link *' but argument is of type 'struct bpf_tramp_node *'
1549 | static inline int bpf_trampoline_unlink_prog(struct bpf_tramp_link *link,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~
kernel/bpf/syscall.c: In function 'bpf_tracing_prog_attach':
>> kernel/bpf/syscall.c:3746:40: error: passing argument 1 of 'bpf_trampoline_link_prog' from incompatible pointer type [-Wincompatible-pointer-types]
3746 | err = bpf_trampoline_link_prog(&link->link.node, tr, tgt_prog);
| ^~~~~~~~~~~~~~~~
| |
| struct bpf_tramp_node *
include/linux/bpf.h:1543:67: note: expected 'struct bpf_tramp_link *' but argument is of type 'struct bpf_tramp_node *'
1543 | static inline int bpf_trampoline_link_prog(struct bpf_tramp_link *link,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~
vim +/bpf_trampoline_unlink_prog +3514 kernel/bpf/syscall.c
3508
3509 static void bpf_tracing_link_release(struct bpf_link *link)
3510 {
3511 struct bpf_tracing_link *tr_link =
3512 container_of(link, struct bpf_tracing_link, link.link);
3513
> 3514 WARN_ON_ONCE(bpf_trampoline_unlink_prog(&tr_link->link.node,
3515 tr_link->trampoline,
3516 tr_link->tgt_prog));
3517
3518 bpf_trampoline_put(tr_link->trampoline);
3519
3520 /* tgt_prog is NULL if target is a kernel function */
3521 if (tr_link->tgt_prog)
3522 bpf_prog_put(tr_link->tgt_prog);
3523 }
3524
--
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-02-25 17:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-25 17:57 [jolsa-perf:bpf/tracing_multi_5 6/23] kernel/bpf/syscall.c:3514:49: error: passing argument 1 of 'bpf_trampoline_unlink_prog' from incompatible pointer type 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.