Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [harry:slab-allow-runtime-parameter-tuning-rfc-v1r1-wip 6/6] mm/slub.c:3173:44: error: no member named 'cache' in 'struct slab_sheaf'
@ 2026-05-13 12:10 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-05-13 12:10 UTC (permalink / raw)
  To: Harry Yoo; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/harry/linux.git slab-allow-runtime-parameter-tuning-rfc-v1r1-wip
head:   10c188407341817c6baf9dad9c788928f8387800
commit: 10c188407341817c6baf9dad9c788928f8387800 [6/6] mm/slab: allow changing sheaf_capacity at runtime
config: um-allnoconfig (https://download.01.org/0day-ci/archive/20260513/202605132022.8fbd7hvH-lkp@intel.com/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/20260513/202605132022.8fbd7hvH-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/202605132022.8fbd7hvH-lkp@intel.com/

All errors (new ones prefixed by >>):

>> mm/slub.c:3173:44: error: no member named 'cache' in 'struct slab_sheaf'
    3173 |         lockdep_assert_held(this_cpu_ptr(&(sheaf->cache)->cpu_sheaves->lock));
         |                                            ~~~~~  ^
>> mm/slub.c:3173:44: error: no member named 'cache' in 'struct slab_sheaf'
    3173 |         lockdep_assert_held(this_cpu_ptr(&(sheaf->cache)->cpu_sheaves->lock));
         |                                            ~~~~~  ^
>> mm/slub.c:3173:44: error: no member named 'cache' in 'struct slab_sheaf'
    3173 |         lockdep_assert_held(this_cpu_ptr(&(sheaf->cache)->cpu_sheaves->lock));
         |                                            ~~~~~  ^
   mm/slub.c:3187:44: error: no member named 'cache' in 'struct slab_sheaf'
    3187 |         lockdep_assert_held(this_cpu_ptr(&(sheaf->cache)->cpu_sheaves->lock));
         |                                            ~~~~~  ^
   mm/slub.c:3187:44: error: no member named 'cache' in 'struct slab_sheaf'
    3187 |         lockdep_assert_held(this_cpu_ptr(&(sheaf->cache)->cpu_sheaves->lock));
         |                                            ~~~~~  ^
   mm/slub.c:3187:44: error: no member named 'cache' in 'struct slab_sheaf'
    3187 |         lockdep_assert_held(this_cpu_ptr(&(sheaf->cache)->cpu_sheaves->lock));
         |                                            ~~~~~  ^
   mm/slub.c:6042:8: error: use of undeclared label 'flush'
    6042 |                 goto flush;
         |                      ^
   mm/slub.c:7962:39: error: use of undeclared identifier 'USHORT_MAX'
    7962 |         return max_t(unsigned int, capacity, USHORT_MAX);
         |                                              ^~~~~~~~~~
   mm/slub.c:8641:26: error: no member named 'barn' in 'struct kmem_cache_node'
    8641 |                 if (get_node(s, node)->barn)
         |                     ~~~~~~~~~~~~~~~~~  ^
   9 errors generated.


vim +3173 mm/slub.c

  3162	
  3163	/*
  3164	 * The following two functions are used mainly in cases where we have to undo an
  3165	 * intended action due to a race or cpu migration. Thus they do not check the
  3166	 * empty or full sheaf limits for simplicity.
  3167	 */
  3168	
  3169	static void barn_put_empty_sheaf(struct node_barn *barn, struct slab_sheaf *sheaf)
  3170	{
  3171		unsigned long flags;
  3172	
> 3173		lockdep_assert_held(this_cpu_ptr(&(sheaf->cache)->cpu_sheaves->lock));
  3174	
  3175		spin_lock_irqsave(&barn->lock, flags);
  3176	
  3177		list_add(&sheaf->barn_list, &barn->sheaves_empty);
  3178		barn->nr_empty++;
  3179	
  3180		spin_unlock_irqrestore(&barn->lock, flags);
  3181	}
  3182	

--
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-05-13 12:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-13 12:10 [harry:slab-allow-runtime-parameter-tuning-rfc-v1r1-wip 6/6] mm/slub.c:3173:44: error: no member named 'cache' in 'struct slab_sheaf' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox