]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched_ext: Drop unused scx_find_sub_sched() stub
authorTejun Heo <tj@kernel.org>
Thu, 7 May 2026 22:09:21 +0000 (12:09 -1000)
committerTejun Heo <tj@kernel.org>
Thu, 7 May 2026 22:09:21 +0000 (12:09 -1000)
commit363a53749cc483409498e8f6e1525fe081f1d9d2
tree28327050ca019bcacc0110b68a917751f863d775
parent4616a9c36be7e2e051ef53b0e8fd729da0277abf
sched_ext: Drop unused scx_find_sub_sched() stub

scx_find_sub_sched()'s only caller, scx_bpf_sub_dispatch(), is gated on
CONFIG_EXT_SUB_SCHED. When CONFIG_EXT_SUB_SCHED=n the caller compiles out
and the stub becomes dead code, tripping -Wunused-function on randconfigs.
Drop the stub.

Fixes: 25037af712eb ("sched_ext: Add rhashtable lookup for sub-schedulers")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/all/202605080556.42PXw8U9-lkp@intel.com/
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext.c