* [akpm-mm:mm-new 479/575] fs/proc/task_mmu.c:3448:3: error: call to undeclared function 'drop_rcu'; ISO C99 and later do not support implicit function declarations
@ 2026-09-17 3:11 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-17 3:11 UTC (permalink / raw)
To: Suren Baghdasaryan
Cc: llvm, oe-kbuild-all, David Hildenbrand, Andrew Morton,
Linux Memory Management List, mm-commits
tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
head: 892f5b3b07e5b07f2f29c87750ff94fa58dcab73
commit: ba1552b2bcbd7adc40512846abeabb02659e6f92 [479/575] proc-task_mmu-remove-unnecessary-inlines-in-function-definitions-fix
config: x86_64-randconfig-1014-20260917 (https://download.01.org/0day-ci/archive/20260917/202609171159.oaB1OaSG-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260917/202609171159.oaB1OaSG-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/202609171159.oaB1OaSG-lkp@intel.com/
All errors (new ones prefixed by >>):
>> fs/proc/task_mmu.c:3448:3: error: call to undeclared function 'drop_rcu'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
3448 | drop_rcu(proc_priv);
| ^
>> fs/proc/task_mmu.c:3450:3: error: call to undeclared function 'reacquire_rcu'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
3450 | reacquire_rcu(proc_priv);
| ^
2 errors generated.
vim +/drop_rcu +3448 fs/proc/task_mmu.c
ea3085dd7a4ec2 Suren Baghdasaryan 2026-04-25 3400
f69ff943df6972 Stephen Wilson 2011-05-24 3401 /*
f69ff943df6972 Stephen Wilson 2011-05-24 3402 * Display pages allocated per node and memory policy via /proc.
f69ff943df6972 Stephen Wilson 2011-05-24 3403 */
871305bb202808 Vlastimil Babka 2018-08-21 3404 static int show_numa_map(struct seq_file *m, void *v)
f69ff943df6972 Stephen Wilson 2011-05-24 3405 {
5b52fc890bece7 Stephen Wilson 2011-05-24 3406 struct numa_maps_private *numa_priv = m->private;
5b52fc890bece7 Stephen Wilson 2011-05-24 3407 struct proc_maps_private *proc_priv = &numa_priv->proc_maps;
f69ff943df6972 Stephen Wilson 2011-05-24 3408 struct vm_area_struct *vma = v;
5b52fc890bece7 Stephen Wilson 2011-05-24 3409 struct numa_maps *md = &numa_priv->md;
f69ff943df6972 Stephen Wilson 2011-05-24 3410 struct file *file = vma->vm_file;
f69ff943df6972 Stephen Wilson 2011-05-24 3411 struct mm_struct *mm = vma->vm_mm;
948927ee9e4f35 David Rientjes 2013-11-12 3412 char buffer[64];
ddc1a5cbc05dc6 Hugh Dickins 2023-10-19 3413 struct mempolicy *pol;
ddc1a5cbc05dc6 Hugh Dickins 2023-10-19 3414 pgoff_t ilx;
948927ee9e4f35 David Rientjes 2013-11-12 3415 int nid;
f69ff943df6972 Stephen Wilson 2011-05-24 3416
f69ff943df6972 Stephen Wilson 2011-05-24 3417 if (!mm)
f69ff943df6972 Stephen Wilson 2011-05-24 3418 return 0;
f69ff943df6972 Stephen Wilson 2011-05-24 3419
5b52fc890bece7 Stephen Wilson 2011-05-24 3420 /* Ensure we start with an empty set of numa_maps statistics. */
5b52fc890bece7 Stephen Wilson 2011-05-24 3421 memset(md, 0, sizeof(*md));
f69ff943df6972 Stephen Wilson 2011-05-24 3422
ddc1a5cbc05dc6 Hugh Dickins 2023-10-19 3423 pol = __get_vma_policy(vma, vma->vm_start, &ilx);
498f237178a3d3 Oleg Nesterov 2014-10-09 3424 if (pol) {
948927ee9e4f35 David Rientjes 2013-11-12 3425 mpol_to_str(buffer, sizeof(buffer), pol);
f69ff943df6972 Stephen Wilson 2011-05-24 3426 mpol_cond_put(pol);
498f237178a3d3 Oleg Nesterov 2014-10-09 3427 } else {
498f237178a3d3 Oleg Nesterov 2014-10-09 3428 mpol_to_str(buffer, sizeof(buffer), proc_priv->task_mempolicy);
498f237178a3d3 Oleg Nesterov 2014-10-09 3429 }
f69ff943df6972 Stephen Wilson 2011-05-24 3430
f69ff943df6972 Stephen Wilson 2011-05-24 3431 seq_printf(m, "%08lx %s", vma->vm_start, buffer);
f69ff943df6972 Stephen Wilson 2011-05-24 3432
f69ff943df6972 Stephen Wilson 2011-05-24 3433 if (file) {
17c2b4ee40beae Fabian Frederick 2014-06-06 3434 seq_puts(m, " file=");
08582d678fcf11 Amir Goldstein 2023-10-09 3435 seq_path(m, file_user_path(file), "\n\t= ");
11250fd12eb8a5 Kefeng Wang 2023-07-28 3436 } else if (vma_is_initial_heap(vma)) {
17c2b4ee40beae Fabian Frederick 2014-06-06 3437 seq_puts(m, " heap");
11250fd12eb8a5 Kefeng Wang 2023-07-28 3438 } else if (vma_is_initial_stack(vma)) {
17c2b4ee40beae Fabian Frederick 2014-06-06 3439 seq_puts(m, " stack");
f69ff943df6972 Stephen Wilson 2011-05-24 3440 }
f69ff943df6972 Stephen Wilson 2011-05-24 3441
fc360bd9cdcf87 Andrew Morton 2011-10-31 3442 if (is_vm_hugetlb_page(vma))
17c2b4ee40beae Fabian Frederick 2014-06-06 3443 seq_puts(m, " huge");
fc360bd9cdcf87 Andrew Morton 2011-10-31 3444
ea3085dd7a4ec2 Suren Baghdasaryan 2026-04-25 3445 /* Skip walking pages if gate VMA */
ea3085dd7a4ec2 Suren Baghdasaryan 2026-04-25 3446 if (vma != get_gate_vma(proc_priv->lock_ctx.mm)) {
ea3085dd7a4ec2 Suren Baghdasaryan 2026-04-25 3447 /* Might sleep. Drop RCU read lock but keep the VMA locked. */
ea3085dd7a4ec2 Suren Baghdasaryan 2026-04-25 @3448 drop_rcu(proc_priv);
ea3085dd7a4ec2 Suren Baghdasaryan 2026-04-25 3449 walk_page_vma(vma, get_show_numa_ops(proc_priv), md);
ea3085dd7a4ec2 Suren Baghdasaryan 2026-04-25 @3450 reacquire_rcu(proc_priv);
ea3085dd7a4ec2 Suren Baghdasaryan 2026-04-25 3451 }
f69ff943df6972 Stephen Wilson 2011-05-24 3452
f69ff943df6972 Stephen Wilson 2011-05-24 3453 if (!md->pages)
f69ff943df6972 Stephen Wilson 2011-05-24 3454 goto out;
f69ff943df6972 Stephen Wilson 2011-05-24 3455
f69ff943df6972 Stephen Wilson 2011-05-24 3456 if (md->anon)
f69ff943df6972 Stephen Wilson 2011-05-24 3457 seq_printf(m, " anon=%lu", md->anon);
f69ff943df6972 Stephen Wilson 2011-05-24 3458
f69ff943df6972 Stephen Wilson 2011-05-24 3459 if (md->dirty)
f69ff943df6972 Stephen Wilson 2011-05-24 3460 seq_printf(m, " dirty=%lu", md->dirty);
f69ff943df6972 Stephen Wilson 2011-05-24 3461
f69ff943df6972 Stephen Wilson 2011-05-24 3462 if (md->pages != md->anon && md->pages != md->dirty)
f69ff943df6972 Stephen Wilson 2011-05-24 3463 seq_printf(m, " mapped=%lu", md->pages);
f69ff943df6972 Stephen Wilson 2011-05-24 3464
f69ff943df6972 Stephen Wilson 2011-05-24 3465 if (md->mapcount_max > 1)
f69ff943df6972 Stephen Wilson 2011-05-24 3466 seq_printf(m, " mapmax=%lu", md->mapcount_max);
f69ff943df6972 Stephen Wilson 2011-05-24 3467
f69ff943df6972 Stephen Wilson 2011-05-24 3468 if (md->swapcache)
f69ff943df6972 Stephen Wilson 2011-05-24 3469 seq_printf(m, " swapcache=%lu", md->swapcache);
f69ff943df6972 Stephen Wilson 2011-05-24 3470
f69ff943df6972 Stephen Wilson 2011-05-24 3471 if (md->active < md->pages && !is_vm_hugetlb_page(vma))
f69ff943df6972 Stephen Wilson 2011-05-24 3472 seq_printf(m, " active=%lu", md->active);
f69ff943df6972 Stephen Wilson 2011-05-24 3473
f69ff943df6972 Stephen Wilson 2011-05-24 3474 if (md->writeback)
f69ff943df6972 Stephen Wilson 2011-05-24 3475 seq_printf(m, " writeback=%lu", md->writeback);
f69ff943df6972 Stephen Wilson 2011-05-24 3476
948927ee9e4f35 David Rientjes 2013-11-12 3477 for_each_node_state(nid, N_MEMORY)
948927ee9e4f35 David Rientjes 2013-11-12 3478 if (md->node[nid])
948927ee9e4f35 David Rientjes 2013-11-12 3479 seq_printf(m, " N%d=%lu", nid, md->node[nid]);
198d1597cc5a12 Rafael Aquini 2015-02-12 3480
198d1597cc5a12 Rafael Aquini 2015-02-12 3481 seq_printf(m, " kernelpagesize_kB=%lu", vma_kernel_pagesize(vma) >> 10);
f69ff943df6972 Stephen Wilson 2011-05-24 3482 out:
f69ff943df6972 Stephen Wilson 2011-05-24 3483 seq_putc(m, '\n');
f69ff943df6972 Stephen Wilson 2011-05-24 3484 return 0;
f69ff943df6972 Stephen Wilson 2011-05-24 3485 }
5b52fc890bece7 Stephen Wilson 2011-05-24 3486
:::::: The code at line 3448 was first introduced by commit
:::::: ea3085dd7a4ec212d6c4b50efca584e0928caa72 fs/proc/task_mmu: read proc/pid/{smaps|numa_maps} under per-vma lock
:::::: TO: Suren Baghdasaryan <surenb@google.com>
:::::: CC: Andrew Morton <akpm@linux-foundation.org>
--
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-09-17 3:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-17 3:11 [akpm-mm:mm-new 479/575] fs/proc/task_mmu.c:3448:3: error: call to undeclared function 'drop_rcu'; ISO C99 and later do not support implicit function declarations 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