[vbabka:slub-percpu-caches-v1 5/5] lib/maple_tree.c:5561: undefined reference to `kmem_cache_prefill_percpu_array'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vbabka/linux.git slub-percpu-caches-v1
head:   23793c9cd4b2fc31144dba68dd67554b8e4308e9
commit: 23793c9cd4b2fc31144dba68dd67554b8e4308e9 [5/5] maple_tree: replace preallocation with slub percpu array prefill
config: riscv-randconfig-r042-20230808 (https://download.01.org/0day-ci/archive/20230809/202308090227.VQNrrinl-lkp@xxxxxxxxx/config)
compiler: riscv32-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230809/202308090227.VQNrrinl-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/202308090227.VQNrrinl-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   riscv32-linux-ld: lib/maple_tree.o: in function `.L0 ':
>> lib/maple_tree.c:5561: undefined reference to `kmem_cache_prefill_percpu_array'
>> riscv32-linux-ld: lib/maple_tree.c:6202: undefined reference to `kmem_cache_setup_percpu_array'


vim +5561 lib/maple_tree.c

  5547	
  5548	/**
  5549	 * mas_preallocate() - Preallocate enough nodes for a store operation
  5550	 * @mas: The maple state
  5551	 * @gfp: The GFP_FLAGS to use for allocations.
  5552	 *
  5553	 * Return: 0 on success, -ENOMEM if memory could not be allocated.
  5554	 */
  5555	int mas_preallocate(struct ma_state *mas, gfp_t gfp)
  5556	{
  5557		int ret;
  5558		int count = 1 + mas_mt_height(mas) * 3;
  5559	
  5560		mas_node_count_gfp(mas, 1, gfp);
> 5561		kmem_cache_prefill_percpu_array(maple_node_cache, count, gfp);
  5562		if (likely(!mas_is_err(mas)))
  5563			return 0;
  5564	
  5565		mas_set_alloc_req(mas, 0);
  5566		ret = xa_err(mas->node);
  5567		mas_reset(mas);
  5568		mas_destroy(mas);
  5569		mas_reset(mas);
  5570		return ret;
  5571	}
  5572	EXPORT_SYMBOL_GPL(mas_preallocate);
  5573	

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux