
tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: 90ff3e07cc268a8e40bd578dcc4907a3db419c52 commit: 2a5ab77af7f94dc99ac894566927f4f934ed675b [2954/2954] bpf, arm64: Add bpf trampoline for arm64 config: arm64-randconfig-r133-20250610 (https://download.01.org/0day-ci/archive/20250611/202506111719.ynqhjFZY-lkp@i...) compiler: aarch64-linux-gcc (GCC) 14.3.0 reproduce: (https://download.01.org/0day-ci/archive/20250611/202506111719.ynqhjFZY-lkp@i...) 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/202506111719.ynqhjFZY-lkp@intel.com/ sparse warnings: (new ones prefixed by >>)
arch/arm64/net/bpf_jit_comp.c:1514:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] * @@ got restricted __le32 [usertype] * @@ arch/arm64/net/bpf_jit_comp.c:1514:29: sparse: expected unsigned int [usertype] * arch/arm64/net/bpf_jit_comp.c:1514:29: sparse: got restricted __le32 [usertype] * arch/arm64/net/bpf_jit_comp.c:1663:52: sparse: sparse: subtraction of different types can't work (different base types)
vim +1514 arch/arm64/net/bpf_jit_comp.c 1495 1496 static void invoke_bpf_mod_ret(struct jit_ctx *ctx, struct bpf_tramp_progs *tp, 1497 int args_off, int retval_off, u32 **branches) 1498 { 1499 int i; 1500 1501 /* The first fmod_ret program will receive a garbage return value. 1502 * Set this to 0 to avoid confusing the program. 1503 */ 1504 emit(A64_STR64I(A64_ZR, A64_SP, retval_off), ctx); 1505 for (i = 0; i < tp->nr_progs; i++) { 1506 invoke_bpf_prog(ctx, tp->progs[i], args_off, retval_off, true); 1507 /* if (*(u64 *)(sp + retval_off) != 0) 1508 * goto do_fexit; 1509 */ 1510 emit(A64_LDR64I(A64_R(10), A64_SP, retval_off), ctx); 1511 /* Save the location of branch, and generate a nop. 1512 * This nop will be replaced with a cbnz later. 1513 */
1514 branches[i] = ctx->image + ctx->idx; 1515 emit(A64_NOP, ctx); 1516 } 1517 } 1518
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki