Re: [PATCH V3] mm/migrate: Fix NULL movable_ops if CONFIG_ZSMALLOC=m

From: kernel test robot
Date: Sun Aug 17 2025 - 06:16:39 EST


Hi Huacai,

kernel test robot noticed the following build warnings:

[auto build test WARNING on akpm-mm/mm-everything]

url: https://github.com/intel-lab-lkp/linux/commits/Huacai-Chen/mm-migrate-Fix-NULL-movable_ops-if-CONFIG_ZSMALLOC-m/20250817-163814
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20250817083534.2398601-1-chenhuacai%40loongson.cn
patch subject: [PATCH V3] mm/migrate: Fix NULL movable_ops if CONFIG_ZSMALLOC=m
config: x86_64-buildonly-randconfig-002-20250817 (https://download.01.org/0day-ci/archive/20250817/202508171758.8m5jQYdz-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250817/202508171758.8m5jQYdz-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/202508171758.8m5jQYdz-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

mm/zsmalloc.c: In function 'zs_init':
>> mm/zsmalloc.c:2249:13: warning: unused variable 'rc' [-Wunused-variable]
2249 | int rc;
| ^~


vim +/rc +2249 mm/zsmalloc.c

2246
2247 static int __init zs_init(void)
2248 {
> 2249 int rc;
2250

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