* [harry:kmalloc-no-objext-rfc-v1r2 3/3] mm/slab.h:397:24: error: 'KMALLOC_NO_OBJ_EXT' undeclared; did you mean 'SLAB_ALLOC_NO_OBJ_EXT'?
@ 2026-07-02 4:44 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-07-02 4:44 UTC (permalink / raw)
To: Harry Yoo (Oracle); +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/harry/linux.git kmalloc-no-objext-rfc-v1r2
head: a734609d2f387a9e682d352e9f28599744cc300b
commit: a734609d2f387a9e682d352e9f28599744cc300b [3/3] mm/slab: prevent unbounded recursion in free path with new kmalloc type
config: arc-allnoconfig (https://download.01.org/0day-ci/archive/20260702/202607021236.E9QSeOUu-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260702/202607021236.E9QSeOUu-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202607021236.E9QSeOUu-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from mm/mempool.c:19:
mm/slab.h: In function 'kmalloc_slab':
>> mm/slab.h:397:24: error: 'KMALLOC_NO_OBJ_EXT' undeclared (first use in this function); did you mean 'SLAB_ALLOC_NO_OBJ_EXT'?
397 | type = KMALLOC_NO_OBJ_EXT;
| ^~~~~~~~~~~~~~~~~~
| SLAB_ALLOC_NO_OBJ_EXT
mm/slab.h:397:24: note: each undeclared identifier is reported only once for each function it appears in
vim +397 mm/slab.h
381
382 /*
383 * Find the kmem_cache structure that serves a given size of
384 * allocation
385 *
386 * This assumes size is larger than zero and not larger than
387 * KMALLOC_MAX_CACHE_SIZE and the caller must check that.
388 */
389 static inline struct kmem_cache *
390 kmalloc_slab(size_t size, kmem_buckets *b, gfp_t flags, kmalloc_token_t token,
391 unsigned int alloc_flags)
392 {
393 unsigned int index;
394 enum kmalloc_cache_type type = kmalloc_type(flags, token);
395
396 if (alloc_flags & SLAB_ALLOC_NO_OBJ_EXT)
> 397 type = KMALLOC_NO_OBJ_EXT;
398
399 if (!b)
400 b = &kmalloc_caches[type];
401 if (size <= 192)
402 index = kmalloc_size_index[size_index_elem(size)];
403 else
404 index = fls(size - 1);
405
406 return (*b)[index];
407 }
408
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-02 4:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-02 4:44 [harry:kmalloc-no-objext-rfc-v1r2 3/3] mm/slab.h:397:24: error: 'KMALLOC_NO_OBJ_EXT' undeclared; did you mean 'SLAB_ALLOC_NO_OBJ_EXT'? kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.