[openeuler:OLK-6.6 3534/3534] kernel/sched/psi.c:894:13: warning: 'task_is_in_psi_v1' defined but not used
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 423fccda72fc2b78107cc119a1755d968c2c36de commit: 2dfc29e742a07863c2426aea03d5c2c97b558b9d [3534/3534] sched/psi: Export cgroup psi from cgroupv2 to cgroupv1 config: x86_64-buildonly-randconfig-002-20251211 (https://download.01.org/0day-ci/archive/20251211/202512111054.dK8iS8qQ-lkp@i...) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251211/202512111054.dK8iS8qQ-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/202512111054.dK8iS8qQ-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from kernel/sched/build_utility.c:97:
kernel/sched/psi.c:894:13: warning: 'task_is_in_psi_v1' defined but not used [-Wunused-function] 894 | static bool task_is_in_psi_v1(void) | ^~~~~~~~~~~~~~~~~
vim +/task_is_in_psi_v1 +894 kernel/sched/psi.c 884 885 #if defined(CONFIG_CGROUP_CPUACCT) && defined(CONFIG_PSI_CGROUP_V1) 886 static bool task_is_in_psi_v1(void) 887 { 888 if (static_branch_likely(&psi_v1_disabled)) 889 return false; 890 891 return !cgroup_subsys_on_dfl(cpuacct_cgrp_subsys); 892 } 893 #else
894 static bool task_is_in_psi_v1(void) 895 { 896 return false; 897 } 898 #endif 899
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot