[jimc:folio-pool-v2-lockdep 21/21] kernel/locking/lockdep_proc.c:298:101: warning: format '%zu' expects argument of type 'size_t', but argument 6 has type 'long unsigned int'
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://github.com/jimc/linux.git folio-pool-v2-lockdep head: e77ee8289ea0755b0ee299348504d4568f942d71 commit: e77ee8289ea0755b0ee299348504d4568f942d71 [21/21] locking/lockdep: Report bootstrap usage, capacity, and size in /proc/lockdep_stats config: parisc-allyesconfig (https://download.01.org/0day-ci/archive/20260818/[email protected]/config) compiler: hppa-linux-gcc (GCC) 16.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260818/[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 warnings (new ones prefixed by >>): In file included from kernel/locking/lockdep_proc.c:25: kernel/locking/lockdep_internals.h: In function 'debug_class_ops_inc': kernel/locking/lockdep_internals.h:257:23: error: 'lock_classes' undeclared (first use in this function); did you mean 'lock_class'? 257 | idx = class - lock_classes; | ^~~~~~~~~~~~ | lock_class kernel/locking/lockdep_internals.h:257:23: note: each undeclared identifier is reported only once for each function it appears in kernel/locking/lockdep_internals.h: In function 'debug_class_ops_read': kernel/locking/lockdep_internals.h:266:23: error: 'lock_classes' undeclared (first use in this function); did you mean 'lock_class'? 266 | idx = class - lock_classes; | ^~~~~~~~~~~~ | lock_class kernel/locking/lockdep_proc.c: In function 'lockdep_stats_show': >> kernel/locking/lockdep_proc.c:298:101: warning: format '%zu' expects argument of type 'size_t', but argument 6 has type 'long unsigned int' [-Wformat=] 298 | seq_printf(m, " lock-classes: %11lu [bootstrap: %lu/%lu, %zu kB]\n", | ~~^ | | | unsigned int | %lu 299 | nr_lock_classes, nr_lock_classes, BOOTSTRAP_LOCK_CLASSES_CAP, 300 | (BOOTSTRAP_LOCK_CLASSES_CAP * sizeof(struct lock_class)) / 1024); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int kernel/locking/lockdep_proc.c:315:101: warning: format '%zu' expects argument of type 'size_t', but argument 6 has type 'long unsigned int' [-Wformat=] 315 | seq_printf(m, " direct dependencies: %11lu [bootstrap: %lu/%lu, %zu kB]\n", | ~~^ | | | unsigned int | %lu 316 | nr_list_entries, nr_list_entries, BOOTSTRAP_LOCKDEP_ENTRIES_CAP, 317 | (BOOTSTRAP_LOCKDEP_ENTRIES_CAP * sizeof(struct lock_list)) / 1024); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int kernel/locking/lockdep_proc.c:345:101: warning: format '%zu' expects argument of type 'size_t', but argument 6 has type 'long unsigned int' [-Wformat=] 345 | seq_printf(m, " dependency chains: %11lu [bootstrap: %lu/%lu, %zu kB]\n", | ~~^ | | | unsigned int | %lu 346 | lock_chain_count(), lock_chain_count(), BOOTSTRAP_LOCK_CHAINS_CAP, 347 | (BOOTSTRAP_LOCK_CHAINS_CAP * sizeof(struct lock_chain)) / 1024); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int kernel/locking/lockdep_proc.c:360:99: warning: format '%zu' expects argument of type 'size_t', but argument 6 has type 'long unsigned int' [-Wformat=] 360 | seq_printf(m, " dependency chain hlocks used: %11u [bootstrap: %u/%lu, %zu kB]\n", | ~~^ | | | unsigned int | %lu 361 | chain_hlocks_used(), chain_hlocks_used(), BOOTSTRAP_CHAIN_HLOCKS_CAP, 362 | (BOOTSTRAP_CHAIN_HLOCKS_CAP * sizeof(u16)) / 1024); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int kernel/locking/lockdep_proc.c:387:101: warning: format '%zu' expects argument of type 'size_t', but argument 6 has type 'long unsigned int' [-Wformat=] 387 | seq_printf(m, " stack-trace entries: %11lu [bootstrap: %lu/%lu, %zu kB]\n", | ~~^ | | | unsigned int | %lu 388 | nr_stack_trace_entries, nr_stack_trace_entries, BOOTSTRAP_STACK_TRACE_CAP, 389 | (BOOTSTRAP_STACK_TRACE_CAP * sizeof(unsigned long)) / 1024); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int vim +298 kernel/locking/lockdep_proc.c 287 288 { 289 unsigned int lc_chunks = 0; 290 size_t lc_chunk_sz = 0, lc_tail_used = 0; 291 292 lockdep_class_stats(&lc_chunks, &lc_chunk_sz, &lc_tail_used); 293 if (lc_chunks) { 294 seq_printf(m, " lock-classes: %11lu [dynamic: %u x %zu kB, tail: %zu kB/%zu kB]\n", 295 nr_lock_classes, lc_chunks, lc_chunk_sz / 1024, 296 lc_tail_used / 1024, lc_chunk_sz / 1024); 297 } else { > 298 seq_printf(m, " lock-classes: %11lu [bootstrap: %lu/%lu, %zu kB]\n", 299 nr_lock_classes, nr_lock_classes, BOOTSTRAP_LOCK_CLASSES_CAP, 300 (BOOTSTRAP_LOCK_CLASSES_CAP * sizeof(struct lock_class)) / 1024); 301 } 302 } 303 seq_printf(m, " dynamic-keys: %11lu\n", 304 nr_dynamic_keys); 305 { 306 unsigned int fp_chunks = 0; 307 size_t fp_chunk_sz = 0, fp_tail_used = 0; 308 309 lockdep_pool_stats(&fp_chunks, &fp_chunk_sz, &fp_tail_used); 310 if (fp_chunks) { 311 seq_printf(m, " direct dependencies: %11lu [dynamic: %u x %zu kB, tail: %zu kB/%zu kB]\n", 312 nr_list_entries, fp_chunks, fp_chunk_sz / 1024, 313 fp_tail_used / 1024, fp_chunk_sz / 1024); 314 } else { 315 seq_printf(m, " direct dependencies: %11lu [bootstrap: %lu/%lu, %zu kB]\n", 316 nr_list_entries, nr_list_entries, BOOTSTRAP_LOCKDEP_ENTRIES_CAP, 317 (BOOTSTRAP_LOCKDEP_ENTRIES_CAP * sizeof(struct lock_list)) / 1024); 318 } 319 } 320 seq_printf(m, " indirect dependencies: %11lu\n", 321 sum_forward_deps); 322 323 /* 324 * Total number of dependencies: 325 * 326 * All irq-safe locks may nest inside irq-unsafe locks, 327 * plus all the other known dependencies: 328 */ 329 seq_printf(m, " all direct dependencies: %11lu\n", 330 nr_irq_unsafe * nr_irq_safe + 331 nr_hardirq_unsafe * nr_hardirq_safe + 332 nr_list_entries); 333 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki