[PATCH bpf-next v3 2/3] bpf, riscv: add fsession support for trampolines
kernel test robot
lkp at intel.com
Fri Feb 6 13:47:52 PST 2026
Hi Menglong,
kernel test robot noticed the following build errors:
[auto build test ERROR on bpf-next/master]
url: https://github.com/intel-lab-lkp/linux/commits/Menglong-Dong/bpf-riscv-introduce-emit_store_stack_imm64-for-trampoline/20260206-202356
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
patch link: https://lore.kernel.org/r/20260206122002.1494125-3-dongml2%40chinatelecom.cn
patch subject: [PATCH bpf-next v3 2/3] bpf, riscv: add fsession support for trampolines
config: riscv-allyesconfig (https://download.01.org/0day-ci/archive/20260207/202602070533.NAsdK5m6-lkp@intel.com/config)
compiler: clang version 16.0.6 (https://github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260207/202602070533.NAsdK5m6-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 at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202602070533.NAsdK5m6-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/riscv/net/bpf_jit_comp64.c:1008:37: error: incompatible pointer types passing 'struct bpf_tramp_link **' to parameter of type 'struct bpf_tramp_link *'; remove & [-Werror,-Wincompatible-pointer-types]
if (bpf_prog_calls_session_cookie(&tl->links[i])) {
^~~~~~~~~~~~~
include/linux/bpf.h:2199:73: note: passing argument to parameter 'link' here
static inline bool bpf_prog_calls_session_cookie(struct bpf_tramp_link *link)
^
1 error generated.
vim +1008 arch/riscv/net/bpf_jit_comp64.c
998
999 static int invoke_bpf(struct bpf_tramp_links *tl, int args_off, int retval_off,
1000 int run_ctx_off, int func_meta_off, bool save_ret, u64 func_meta,
1001 int cookie_off, struct rv_jit_context *ctx)
1002 {
1003 int i, cur_cookie = (cookie_off - args_off) / 8;
1004
1005 for (i = 0; i < tl->nr_links; i++) {
1006 int err;
1007
> 1008 if (bpf_prog_calls_session_cookie(&tl->links[i])) {
1009 u64 meta = func_meta | ((u64)cur_cookie << BPF_TRAMP_COOKIE_INDEX_SHIFT);
1010
1011 emit_store_stack_imm64(RV_REG_T1, -func_meta_off, meta, ctx);
1012 cur_cookie--;
1013 }
1014 err = invoke_bpf_prog(tl->links[i], args_off, retval_off, run_ctx_off,
1015 save_ret, ctx);
1016 if (err)
1017 return err;
1018 }
1019 return 0;
1020 }
1021
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the linux-riscv
mailing list