Re: [PATCH 8/8] mm/vmstat, memcontrol: Track ZSWAP_B, ZSWAPPED_B per-memcg-lruvec

From: kernel test robot

Date: Thu Feb 26 2026 - 18:03:29 EST


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]
[cannot apply to akpm-mm/mm-everything next-20260226]
[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-9-joshua.hahnjy%40gmail.com
patch subject: [PATCH 8/8] mm/vmstat, memcontrol: Track ZSWAP_B, ZSWAPPED_B per-memcg-lruvec
config: m68k-defconfig (https://download.01.org/0day-ci/archive/20260227/202602270614.hOv7KIkV-lkp@xxxxxxxxx/config)
compiler: m68k-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260227/202602270614.hOv7KIkV-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/202602270614.hOv7KIkV-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

mm/zsmalloc.c: In function '__free_zspage':
>> mm/zsmalloc.c:813:24: error: implicit declaration of function 'zpdesc_objcgs'; did you mean 'zpdesc_lock'? [-Wimplicit-function-declaration]
813 | bool objcg = !!zpdesc_objcgs(zspage->first_zpdesc);
| ^~~~~~~~~~~~~
| zpdesc_lock


vim +813 mm/zsmalloc.c

808
809 static void __free_zspage(struct zs_pool *pool, struct size_class *class,
810 struct zspage *zspage)
811 {
812 struct zpdesc *zpdesc, *next;
> 813 bool objcg = !!zpdesc_objcgs(zspage->first_zpdesc);
814
815 assert_spin_locked(&class->lock);
816
817 VM_BUG_ON(get_zspage_inuse(zspage));
818 VM_BUG_ON(zspage->fullness != ZS_INUSE_RATIO_0);
819
820 next = zpdesc = get_first_zpdesc(zspage);
821 do {
822 VM_BUG_ON_PAGE(!zpdesc_is_locked(zpdesc), zpdesc_page(zpdesc));
823 next = get_next_zpdesc(zpdesc);
824 reset_zpdesc(zpdesc);
825 zpdesc_unlock(zpdesc);
826 zpdesc_dec_zone_page_state(zpdesc);
827 if (objcg)
828 dec_node_page_state(zpdesc_page(zpdesc), NR_ZSWAP_B);
829 zpdesc_put(zpdesc);
830 zpdesc = next;
831 } while (zpdesc != NULL);
832
833 cache_free_zspage(zspage);
834
835 class_stat_sub(class, ZS_OBJS_ALLOCATED, class->objs_per_zspage);
836 atomic_long_sub(class->pages_per_zspage, &pool->pages_allocated);
837 }
838

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki