tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: 9f126942e6d283d9a0ca99f3e46dbebe8aec3afd commit: 0ccf285cd2e038da074744e99cb916c5bcf3d55b [26896/30000] PSI: Introduce pressure.stat in psi config: x86_64-randconfig-r132-20240409 (https://download.01.org/0day-ci/archive/20240410/202404100544.ypHpNB9p-lkp@i...) compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240410/202404100544.ypHpNB9p-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/202404100544.ypHpNB9p-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
kernel/sched/psi.c:198:22: sparse: sparse: symbol 'psi_stat_system' was not declared. Should it be static? kernel/sched/psi.c:202:22: sparse: sparse: symbol 'to_psi_group_ext' was not declared. Should it be static?
kernel/sched/psi.c:401:22: sparse: sparse: dereference of noderef expression kernel/sched/psi.c:402:38: sparse: sparse: dereference of noderef expression kernel/sched/psi.c:952:13: sparse: sparse: dereference of noderef expression
vim +/psi_stat_system +198 kernel/sched/psi.c
eb414681d5a07d2 Johannes Weiner 2018-10-26 194 65479800e82741c Lu Jialin 2023-11-29 195 #ifdef CONFIG_PSI_FINE_GRAINED 65479800e82741c Lu Jialin 2023-11-29 196 /* System-level fine grained pressure and stall tracking */ cc71a821d3f13cb Lu Jialin 2023-11-29 197 static DEFINE_PER_CPU(struct psi_group_stat_cpu, system_stat_group_pcpu); cc71a821d3f13cb Lu Jialin 2023-11-29 @198 struct psi_group_ext psi_stat_system = { cc71a821d3f13cb Lu Jialin 2023-11-29 199 .pcpu = &system_stat_group_pcpu, cc71a821d3f13cb Lu Jialin 2023-11-29 200 }; 65479800e82741c Lu Jialin 2023-11-29 201 65479800e82741c Lu Jialin 2023-11-29 @202 struct psi_group_ext *to_psi_group_ext(struct psi_group *psi) 65479800e82741c Lu Jialin 2023-11-29 203 { 65479800e82741c Lu Jialin 2023-11-29 204 if (psi == &psi_system) 65479800e82741c Lu Jialin 2023-11-29 205 return &psi_stat_system; 65479800e82741c Lu Jialin 2023-11-29 206 else 65479800e82741c Lu Jialin 2023-11-29 207 return container_of(psi, struct psi_group_ext, psi); 65479800e82741c Lu Jialin 2023-11-29 208 } 65479800e82741c Lu Jialin 2023-11-29 209 #else 65479800e82741c Lu Jialin 2023-11-29 210 static inline struct psi_group_ext *to_psi_group_ext(struct psi_group *psi) 65479800e82741c Lu Jialin 2023-11-29 211 { 65479800e82741c Lu Jialin 2023-11-29 212 return NULL; 65479800e82741c Lu Jialin 2023-11-29 213 } 65479800e82741c Lu Jialin 2023-11-29 214 #endif 65479800e82741c Lu Jialin 2023-11-29 215
:::::: The code at line 198 was first introduced by commit :::::: cc71a821d3f13cbd9ad3d3eec9fa394f3b2ae96b PSI: Introduce fine grained stall time collect for cgroup reclaim
:::::: TO: Lu Jialin lujialin4@huawei.com :::::: CC: Lu Jialin lujialin4@huawei.com