kernel/sched/ext.c:7926:undefined reference to `bpf_prog_arena'
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 7da7f07112610a520567421dd2ffcb51beaefbcc commit: 0e2819cba977f910c7eeaf77c705e28787c3385d [7431/9870] sched_ext: Require an arena for cid-form schedulers config: parisc-randconfig-r134-20260530 (https://download.01.org/0day-ci/archive/20260531/[email protected]/config) compiler: hppa-linux-gcc (GCC) 14.3.0 sparse: v0.6.5-rc1 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260531/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
hppa-linux-ld: kernel/sched/build_policy.o: in function `scx_arena_scan_prog':
>> kernel/sched/ext.c:7926:(.text+0x4b44): undefined reference to `bpf_prog_arena'
vim +7926 kernel/sched/ext.c
7917
7918 /*
7919 * The verifier enforces one arena per BPF program, so each struct_ops
7920 * member prog contributes at most one arena via bpf_prog_arena().
7921 * Require all non-NULL contributions to match.
7922 */
7923 static int scx_arena_scan_prog(struct bpf_prog *prog, void *data)
7924 {
7925 struct scx_arena_scan *s = data;
> 7926 struct bpf_map *arena = bpf_prog_arena(prog);
7927
7928 if (!arena)
7929 return 0;
7930 if (s->arena && s->arena != arena) {
7931 s->err = -EINVAL;
7932 return 1;
7933 }
7934 s->arena = arena;
7935 return 0;
7936 }
7937
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki