tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: 55bf638d3d29c53ddd64ed89efda8b70b47ccbbc commit: 5361bef36768820fb029e081a669749b8001769e [2616/2616] memcg: add restrict to swap to cgroup1 config: arm64-randconfig-r052-20250101 (https://download.01.org/0day-ci/archive/20250101/202501011625.6qilIzlu-lkp@i...) compiler: aarch64-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250101/202501011625.6qilIzlu-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/202501011625.6qilIzlu-lkp@intel.com/
All warnings (new ones prefixed by >>):
mm/memcontrol.c:4167:5: warning: no previous prototype for 'memcg_swapmax_read' [-Wmissing-prototypes]
4167 | u64 memcg_swapmax_read(struct cgroup_subsys_state *css, struct cftype *cft) | ^~~~~~~~~~~~~~~~~~
vim +/memcg_swapmax_read +4167 mm/memcontrol.c
4166
4167 u64 memcg_swapmax_read(struct cgroup_subsys_state *css, struct cftype *cft)
4168 { 4169 struct mem_cgroup *memcg = mem_cgroup_from_css(css); 4170 4171 if (!static_branch_likely(&memcg_swap_qos_key)) 4172 return PAGE_COUNTER_MAX * PAGE_SIZE; 4173 4174 return READ_ONCE(memcg->swap_dev->max) * PAGE_SIZE; 4175 } 4176