Re: [PATCH -next 2/2] memcg: remove mem_cgroup_size()

From: Chen Ridong
Date: Tue Dec 09 2025 - 22:07:25 EST




On 2025/12/10 9:35, kernel test robot wrote:
> Hi Chen,
>
> kernel test robot noticed the following build errors:
>
> [auto build test ERROR on next-20251209]
>
> url: https://github.com/intel-lab-lkp/linux/commits/Chen-Ridong/memcg-move-mem_cgroup_usage-memcontrol-v1-c/20251209-211854
> base: next-20251209
> patch link: https://lore.kernel.org/r/20251209130251.1988615-3-chenridong%40huaweicloud.com
> patch subject: [PATCH -next 2/2] memcg: remove mem_cgroup_size()
> config: i386-allnoconfig (https://download.01.org/0day-ci/archive/20251210/202512100924.LqJqXM7P-lkp@xxxxxxxxx/config)
> 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/20251210/202512100924.LqJqXM7P-lkp@xxxxxxxxx/reproduce)
>
> 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@xxxxxxxxx>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202512100924.LqJqXM7P-lkp@xxxxxxxxx/
>
> All errors (new ones prefixed by >>):
>
> mm/vmscan.c: In function 'apply_proportional_protection':
>>> mm/vmscan.c:2488:63: error: invalid use of undefined type 'struct mem_cgroup'
> 2488 | unsigned long usage = page_counter_read(&memcg->memory);
> | ^~
>
>
> vim +2488 mm/vmscan.c
>

Oh, I missed CONFIG_MEMCG=n case, will fix it, thanks.

--
Best regards,
Ridong