Re: [PATCH] mm/util: Use kmalloc buckets for kmemdup_nul()

From: kernel test robot

Date: Thu May 21 2026 - 13:56:42 EST


Hi Kees,

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/Kees-Cook/mm-util-Use-kmalloc-buckets-for-kmemdup_nul/20260521-204404
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20260521124026.work.036-kees%40kernel.org
patch subject: [PATCH] mm/util: Use kmalloc buckets for kmemdup_nul()
config: s390-allnoconfig (https://download.01.org/0day-ci/archive/20260522/202605220158.VO5WnXl7-lkp@xxxxxxxxx/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 5bac06718f502014fade905512f1d26d578a18f3)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260522/202605220158.VO5WnXl7-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/202605220158.VO5WnXl7-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

mm/util.c:37:22: warning: variable 'user_buckets' set but not used [-Wunused-but-set-global]
37 | static kmem_buckets *user_buckets __ro_after_init;
| ^
>> mm/util.c:38:22: warning: variable 'nul_buckets' set but not used [-Wunused-but-set-global]
38 | static kmem_buckets *nul_buckets __ro_after_init;
| ^
2 warnings generated.


vim +/nul_buckets +38 mm/util.c

36
> 37 static kmem_buckets *user_buckets __ro_after_init;
> 38 static kmem_buckets *nul_buckets __ro_after_init;
39

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