Re: [PATCH 5/8] mm/zsmalloc,zswap: Redirect zswap_entry->obcg to zpdesc

From: Joshua Hahn

Date: Fri Feb 27 2026 - 14:14:42 EST


On Fri, 27 Feb 2026 07:13:12 +0800 kernel test robot <lkp@xxxxxxxxx> wrote:

> Hi Joshua,
>
> kernel test robot noticed the following build errors:
>
> [auto build test ERROR on axboe/for-next]
> [also build test ERROR on linus/master v7.0-rc1 next-20260226]
> [cannot apply to akpm-mm/mm-everything]
> [If your patch is applied to the wrong git tree, kindly drop us a note.
> And when submitting patch, we suggest to use '--base' as documented in
> https://git-scm.com/docs/git-format-patch#_base_tree_information]
>
> url: https://github.com/intel-lab-lkp/linux/commits/Joshua-Hahn/mm-zsmalloc-Rename-zs_object_copy-to-zs_obj_copy/20260227-033239
> base: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux.git for-next
> patch link: https://lore.kernel.org/r/20260226192936.3190275-6-joshua.hahnjy%40gmail.com
> patch subject: [PATCH 5/8] mm/zsmalloc,zswap: Redirect zswap_entry->obcg to zpdesc
> config: x86_64-buildonly-randconfig-004-20260227 (https://download.01.org/0day-ci/archive/20260227/202602270738.SxqPEs3Q-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/20260227/202602270738.SxqPEs3Q-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/202602270738.SxqPEs3Q-lkp@xxxxxxxxx/
>
> All errors (new ones prefixed by >>):
>
> mm/zswap.c: In function 'zswap_lru_add':
> >> mm/zswap.c:626:25: error: implicit declaration of function 'obj_cgroup_memcg'; did you mean 'obj_cgroup_get'? [-Wimplicit-function-declaration]
> 626 | memcg = objcg ? obj_cgroup_memcg(objcg) : NULL;
> | ^~~~~~~~~~~~~~~~
> | obj_cgroup_get
> >> mm/zswap.c:626:49: error: pointer/integer type mismatch in conditional expression [-Wint-conversion]
> 626 | memcg = objcg ? obj_cgroup_memcg(objcg) : NULL;
> | ^
> mm/zswap.c: In function 'zswap_lru_del':
> mm/zswap.c:639:49: error: pointer/integer type mismatch in conditional expression [-Wint-conversion]
> 639 | memcg = objcg ? obj_cgroup_memcg(objcg) : NULL;
> | ^

Hi Kernel test robot,

Thank you! It appears that I've forgotten to define obj_cgroup_memcg
for the #else CONFIG_MEMCG case. I'll update this in v2!
Joshua