[jimc:scratchpad-v10 6/14] kernel/locking/lockdep.c:6754:39: error: 'lockdep_trace_pool' undeclared; did you mean 'lockdep_trace_stats'?

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://github.com/jimc/linux.git scratchpad-v10
head:   45e5e0071e4ad7afee159e8cbe6cbe50c8db61d0
commit: 4e4680605a52c4e4bf0f7c6b0cf1455d0b26f4ed [6/14] locking/lockdep: Convert lock graph and radix tables to dynamic pools
config: riscv-randconfig-001-20260825 (https://download.01.org/0day-ci/archive/20260825/[email protected]/config)
compiler: riscv64-linux-gcc (GCC) 13.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260825/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

   In file included from include/asm-generic/bug.h:31,
                    from arch/riscv/include/asm/bug.h:90,
                    from include/linux/bug.h:5,
                    from arch/riscv/include/asm/current.h:13,
                    from include/linux/mutex.h:14,
                    from kernel/locking/lockdep.c:30:
   kernel/locking/lockdep.c: In function 'lockdep_boot_report':
   kernel/locking/lockdep.c:6754:24: error: 'stack_trace' undeclared (first use in this function); did you mean 'lock_trace'?
    6754 |                 sizeof(stack_trace) - lockdep_trace_pool.remaining,
         |                        ^~~~~~~~~~~
   include/linux/printk.h:483:33: note: in definition of macro 'printk_index_wrap'
     483 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
         |                                 ^~~~~~~~~~~
   include/linux/printk.h:584:9: note: in expansion of macro 'printk'
     584 |         printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~
   kernel/locking/lockdep.c:6751:9: note: in expansion of macro 'pr_info'
    6751 |         pr_info("lockdep: %lu/%lu bootstrap entries, %zu/%lu bootstrap traces used before buddy init, scratchrec active\n",
         |         ^~~~~~~
   kernel/locking/lockdep.c:6754:24: note: each undeclared identifier is reported only once for each function it appears in
    6754 |                 sizeof(stack_trace) - lockdep_trace_pool.remaining,
         |                        ^~~~~~~~~~~
   include/linux/printk.h:483:33: note: in definition of macro 'printk_index_wrap'
     483 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
         |                                 ^~~~~~~~~~~
   include/linux/printk.h:584:9: note: in expansion of macro 'printk'
     584 |         printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~
   kernel/locking/lockdep.c:6751:9: note: in expansion of macro 'pr_info'
    6751 |         pr_info("lockdep: %lu/%lu bootstrap entries, %zu/%lu bootstrap traces used before buddy init, scratchrec active\n",
         |         ^~~~~~~
>> kernel/locking/lockdep.c:6754:39: error: 'lockdep_trace_pool' undeclared (first use in this function); did you mean 'lockdep_trace_stats'?
    6754 |                 sizeof(stack_trace) - lockdep_trace_pool.remaining,
         |                                       ^~~~~~~~~~~~~~~~~~
   include/linux/printk.h:483:33: note: in definition of macro 'printk_index_wrap'
     483 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
         |                                 ^~~~~~~~~~~
   include/linux/printk.h:584:9: note: in expansion of macro 'printk'
     584 |         printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~
   kernel/locking/lockdep.c:6751:9: note: in expansion of macro 'pr_info'
    6751 |         pr_info("lockdep: %lu/%lu bootstrap entries, %zu/%lu bootstrap traces used before buddy init, scratchrec active\n",
         |         ^~~~~~~
   kernel/locking/lockdep.c:6755:32: error: 'BOOTSTRAP_STACK_TRACE_ENTRIES' undeclared (first use in this function); did you mean 'BOOTSTRAP_STACK_TRACE_CAP'?
    6755 |                 (unsigned long)BOOTSTRAP_STACK_TRACE_ENTRIES);
         |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/printk.h:483:33: note: in definition of macro 'printk_index_wrap'
     483 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
         |                                 ^~~~~~~~~~~
   include/linux/printk.h:584:9: note: in expansion of macro 'printk'
     584 |         printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~
   kernel/locking/lockdep.c:6751:9: note: in expansion of macro 'pr_info'
    6751 |         pr_info("lockdep: %lu/%lu bootstrap entries, %zu/%lu bootstrap traces used before buddy init, scratchrec active\n",
         |         ^~~~~~~


vim +6754 kernel/locking/lockdep.c

  6748	
  6749	static int __init lockdep_boot_report(void)
  6750	{
> 6751		pr_info("lockdep: %lu/%lu bootstrap entries, %zu/%lu bootstrap traces used before buddy init, scratchrec active\n",
  6752			min_t(unsigned long, nr_list_entries, BOOTSTRAP_LOCKDEP_ENTRIES),
  6753			BOOTSTRAP_LOCKDEP_ENTRIES,
> 6754			sizeof(stack_trace) - lockdep_trace_pool.remaining,
  6755			(unsigned long)BOOTSTRAP_STACK_TRACE_ENTRIES);
  6756		return 0;
  6757	}
  6758	core_initcall(lockdep_boot_report);
  6759	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.