From: kernel test robot <lkp@intel.com>
To: Jiri Olsa <jolsa@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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 *'
Date: Sat, 31 Jan 2026 13:31:34 +0800 [thread overview]
Message-ID: <202601311315.nMWUIIfg-lkp@intel.com> (raw)
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
reply other threads:[~2026-01-31 5:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202601311315.nMWUIIfg-lkp@intel.com \
--to=lkp@intel.com \
--cc=jolsa@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.