[jimc:scratchpad-v10 14/24] kernel/locking/lockdep.c:6710:24: error: 'stack_trace' undeclared; did you mean 'lock_trace'?
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: a23fc077806416450fbeb0a5a534fd995e465430 commit: 336938fcdc2d4cb4705b1ebcae351ef17abee91e [14/24] locking/lockdep: Route stack trace entries to static bootstrap scratchpad config: arm-randconfig-003-20260822 (https://download.01.org/0day-ci/archive/20260822/[email protected]/config) compiler: arm-linux-gnueabi-gcc (GCC) 12.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260822/[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 >>): kernel/locking/lockdep.c:71:71: error: macro "SCRATCHREC_INIT_STATIC" passed 7 arguments, but takes just 6 71 | SCRATCH_64K_ORDER, 0, &lockdep_pool_key); | ^ In file included from kernel/locking/lockdep.c:61: include/linux/scratchpad.h:360: note: macro "SCRATCHREC_INIT_STATIC" defined here 360 | #define SCRATCHREC_INIT_STATIC(name, _elem_size, _static_buf, _size_bytes, _min_order, _key) \ | kernel/locking/lockdep.c:69:9: error: 'SCRATCHREC_INIT_STATIC' undeclared here (not in a function) 69 | SCRATCHREC_INIT_STATIC(lockdep_pool, sizeof(struct lock_list), | ^~~~~~~~~~~~~~~~~~~~~~ In file included from include/asm-generic/bug.h:31, from arch/arm/include/asm/bug.h:60, from include/linux/bug.h:5, from include/linux/instrumented.h:10, from include/linux/atomic/atomic-instrumented.h:17, from include/linux/atomic.h:82, from include/linux/cpumask.h:10, from include/linux/smp.h:13, from include/linux/lockdep.h:14, from include/linux/mutex.h:17, from kernel/locking/lockdep.c:30: kernel/locking/lockdep.c: In function 'lockdep_boot_report': >> kernel/locking/lockdep.c:6710:24: error: 'stack_trace' undeclared (first use in this function); did you mean 'lock_trace'? 6710 | sizeof(stack_trace) - lockdep_trace_scratchpad.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:6707:9: note: in expansion of macro 'pr_info' 6707 | pr_info("lockdep: %lu/%lu bootstrap entries, %zu/%lu bootstrap traces used before buddy init, scratchrec active\n", | ^~~~~~~ kernel/locking/lockdep.c:6710:24: note: each undeclared identifier is reported only once for each function it appears in 6710 | sizeof(stack_trace) - lockdep_trace_scratchpad.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:6707:9: note: in expansion of macro 'pr_info' 6707 | pr_info("lockdep: %lu/%lu bootstrap entries, %zu/%lu bootstrap traces used before buddy init, scratchrec active\n", | ^~~~~~~ >> kernel/locking/lockdep.c:6710:39: error: 'lockdep_trace_scratchpad' undeclared (first use in this function); did you mean 'lockdep_trace_stats'? 6710 | sizeof(stack_trace) - lockdep_trace_scratchpad.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:6707:9: note: in expansion of macro 'pr_info' 6707 | pr_info("lockdep: %lu/%lu bootstrap entries, %zu/%lu bootstrap traces used before buddy init, scratchrec active\n", | ^~~~~~~ kernel/locking/lockdep.c:6711:32: error: 'BOOTSTRAP_STACK_TRACE_ENTRIES' undeclared (first use in this function); did you mean 'MAX_STACK_TRACE_ENTRIES'? 6711 | (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:6707:9: note: in expansion of macro 'pr_info' 6707 | pr_info("lockdep: %lu/%lu bootstrap entries, %zu/%lu bootstrap traces used before buddy init, scratchrec active\n", | ^~~~~~~ vim +6710 kernel/locking/lockdep.c 6704 6705 static int __init lockdep_boot_report(void) 6706 { > 6707 pr_info("lockdep: %lu/%lu bootstrap entries, %zu/%lu bootstrap traces used before buddy init, scratchrec active\n", 6708 min_t(unsigned long, nr_list_entries, BOOTSTRAP_LOCKDEP_ENTRIES), 6709 BOOTSTRAP_LOCKDEP_ENTRIES, > 6710 sizeof(stack_trace) - lockdep_trace_scratchpad.remaining, 6711 (unsigned long)BOOTSTRAP_STACK_TRACE_ENTRIES); 6712 return 0; 6713 } 6714 core_initcall(lockdep_boot_report); 6715 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki