tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: 03571c277d6443f7ba8712ac6c9073fa9fa0d3bf commit: a8a836a36072aacbc4aaf08b8b3c8a654dbc0157 [9479/30000] mm/dynamic_hugetlb: establish the dynamic hugetlb feature framework config: x86_64-randconfig-r132-20240409 (https://download.01.org/0day-ci/archive/20240409/202404091402.qUFwznOY-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/20240409/202404091402.qUFwznOY-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/202404091402.qUFwznOY-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
mm/dynamic_hugetlb.c:198:55: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct cgroup_subsys_state *css @@ got struct cgroup_subsys_state [noderef] __rcu * @@
mm/dynamic_hugetlb.c:198:55: sparse: expected struct cgroup_subsys_state *css mm/dynamic_hugetlb.c:198:55: sparse: got struct cgroup_subsys_state [noderef] __rcu *
vim +198 mm/dynamic_hugetlb.c
195 196 int hugetlb_pool_destroy(struct cgroup *cgrp) 197 {
198 struct cgroup_subsys_state *css = cgrp->subsys[memory_cgrp_id];
199 struct mem_cgroup *memcg = mem_cgroup_from_css(css); 200 struct dhugetlb_pool *hpool = memcg ? memcg->hpool : NULL; 201 int ret = 0; 202 203 if (!dhugetlb_enabled) 204 return 0; 205 206 if (!hpool || hpool->attach_memcg != memcg) 207 return 0; 208 209 ret = free_hugepage_to_hugetlb(hpool); 210 memcg->hpool = NULL; 211 212 put_hpool(hpool); 213 return ret; 214 } 215