Skip to contentSkip to conversation

kernel/sched/ext.c:626:undefined reference to `bpf_arena_map_kern_vm_start'

PATCH kernel test robot 1 participant 1 message May 31

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   7da7f07112610a520567421dd2ffcb51beaefbcc
commit: abdc2516f100d8f9e637a49e4fdfd2d09a318680 [7433/9870] sched_ext: Convert ops.set_cmask() to arena-resident cmask
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:7995:(.text+0x4b44): undefined reference to `bpf_prog_arena'
hppa-linux-ld: kernel/sched/build_policy.o: in function `scx_call_op_set_cpumask':

>> kernel/sched/ext.c:626:(.text+0x1dcec): undefined reference to `bpf_arena_map_kern_vm_start'

vim +626 kernel/sched/ext.c

602
603 /**
604 * scx_call_op_set_cpumask - invoke ops.set_cpumask / ops_cid.set_cmask for @task
605 * @sch: scx_sched being invoked
606 * @rq: rq to update as the currently-locked rq, or NULL
607 * @task: task whose affinity is changing
608 * @cpumask: new cpumask
609 *
610 * For cid-form schedulers, translate @cpumask to a cmask via the per-cpu
611 * scratch in ext_cid.c and dispatch through the ops_cid union view. Caller
612 * must hold @rq's rq lock so this_cpu_ptr is stable across the call.
613 */
614 static inline void scx_call_op_set_cpumask(struct scx_sched *sch, struct rq *rq,
615 struct task_struct *task,
616 const struct cpumask *cpumask)
617 {
618 WARN_ON_ONCE(current->scx.kf_tasks[0]);
619 current->scx.kf_tasks[0] = task;
620 if (rq)
621 update_locked_rq(rq);
622
623 if (scx_is_cid_type()) {
624 struct scx_cmask *kern_va = *this_cpu_ptr(sch->set_cmask_scratch);
625 unsigned long uaddr = (unsigned long)kern_va -

 > 626				bpf_arena_map_kern_vm_start(sch->arena_map);

627 /*
628 * Build the per-CPU arena cmask and hand BPF the uaddr. Caller
629 * holds the rq lock with IRQs disabled, which makes us the sole
630 * user of the scratch area.
631 */
632 scx_cpumask_to_cmask(cpumask, kern_va);
633 sch->ops_cid.set_cmask(task, (struct scx_cmask *)uaddr);
634 } else {
635 sch->ops.set_cpumask(task, cpumask);
636 }
637
638 if (rq)
639 update_locked_rq(NULL);
640 current->scx.kf_tasks[0] = NULL;
641 }
642

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki