* [linux-next:master 8327/9480] fs/proc/task_mmu.c:3452:3: error: implicit declaration of function 'drop_rcu'; did you mean 'drop_slab'?
@ 2026-09-26 11:08 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-26 11:08 UTC (permalink / raw)
To: Suren Baghdasaryan
Cc: oe-kbuild-all, Andrew Morton, Linux Memory Management List,
Liam R. Howlett (Oracle), Lorenzo Stoakes (ARM)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: f5f84daefcd92d7a630066635ecea1433ed5eac7
commit: b58393e47de94ac659598675696bb8c281f4c5aa [8327/9480] proc/task_mmu: remove unnecessary inlines in function definitions
config: powerpc64-randconfig-1001-20260926 (https://download.01.org/0day-ci/archive/20260926/202609261818.gGqBcNSM-lkp@intel.com/config)
compiler: powerpc64-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260926/202609261818.gGqBcNSM-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/202609261818.gGqBcNSM-lkp@intel.com/
All errors (new ones prefixed by >>):
fs/proc/task_mmu.c: In function 'show_numa_map':
>> fs/proc/task_mmu.c:3452:3: error: implicit declaration of function 'drop_rcu'; did you mean 'drop_slab'? [-Werror=implicit-function-declaration]
drop_rcu(proc_priv);
^~~~~~~~
drop_slab
>> fs/proc/task_mmu.c:3454:3: error: implicit declaration of function 'reacquire_rcu'; did you mean 'get_file_rcu'? [-Werror=implicit-function-declaration]
reacquire_rcu(proc_priv);
^~~~~~~~~~~~~
get_file_rcu
cc1: some warnings being treated as errors
vim +3452 fs/proc/task_mmu.c
ea3085dd7a4ec21 Suren Baghdasaryan 2026-04-25 3404
f69ff943df6972a Stephen Wilson 2011-05-24 3405 /*
f69ff943df6972a Stephen Wilson 2011-05-24 3406 * Display pages allocated per node and memory policy via /proc.
f69ff943df6972a Stephen Wilson 2011-05-24 3407 */
871305bb2028080 Vlastimil Babka 2018-08-21 3408 static int show_numa_map(struct seq_file *m, void *v)
f69ff943df6972a Stephen Wilson 2011-05-24 3409 {
5b52fc890bece77 Stephen Wilson 2011-05-24 3410 struct numa_maps_private *numa_priv = m->private;
5b52fc890bece77 Stephen Wilson 2011-05-24 3411 struct proc_maps_private *proc_priv = &numa_priv->proc_maps;
f69ff943df6972a Stephen Wilson 2011-05-24 3412 struct vm_area_struct *vma = v;
5b52fc890bece77 Stephen Wilson 2011-05-24 3413 struct numa_maps *md = &numa_priv->md;
f69ff943df6972a Stephen Wilson 2011-05-24 3414 struct file *file = vma->vm_file;
f69ff943df6972a Stephen Wilson 2011-05-24 3415 struct mm_struct *mm = vma->vm_mm;
948927ee9e4f35f David Rientjes 2013-11-12 3416 char buffer[64];
ddc1a5cbc05dc62 Hugh Dickins 2023-10-19 3417 struct mempolicy *pol;
ddc1a5cbc05dc62 Hugh Dickins 2023-10-19 3418 pgoff_t ilx;
948927ee9e4f35f David Rientjes 2013-11-12 3419 int nid;
f69ff943df6972a Stephen Wilson 2011-05-24 3420
f69ff943df6972a Stephen Wilson 2011-05-24 3421 if (!mm)
f69ff943df6972a Stephen Wilson 2011-05-24 3422 return 0;
f69ff943df6972a Stephen Wilson 2011-05-24 3423
5b52fc890bece77 Stephen Wilson 2011-05-24 3424 /* Ensure we start with an empty set of numa_maps statistics. */
5b52fc890bece77 Stephen Wilson 2011-05-24 3425 memset(md, 0, sizeof(*md));
f69ff943df6972a Stephen Wilson 2011-05-24 3426
ddc1a5cbc05dc62 Hugh Dickins 2023-10-19 3427 pol = __get_vma_policy(vma, vma->vm_start, &ilx);
498f237178a3d31 Oleg Nesterov 2014-10-09 3428 if (pol) {
948927ee9e4f35f David Rientjes 2013-11-12 3429 mpol_to_str(buffer, sizeof(buffer), pol);
f69ff943df6972a Stephen Wilson 2011-05-24 3430 mpol_cond_put(pol);
498f237178a3d31 Oleg Nesterov 2014-10-09 3431 } else {
498f237178a3d31 Oleg Nesterov 2014-10-09 3432 mpol_to_str(buffer, sizeof(buffer), proc_priv->task_mempolicy);
498f237178a3d31 Oleg Nesterov 2014-10-09 3433 }
f69ff943df6972a Stephen Wilson 2011-05-24 3434
f69ff943df6972a Stephen Wilson 2011-05-24 3435 seq_printf(m, "%08lx %s", vma->vm_start, buffer);
f69ff943df6972a Stephen Wilson 2011-05-24 3436
f69ff943df6972a Stephen Wilson 2011-05-24 3437 if (file) {
17c2b4ee40beae2 Fabian Frederick 2014-06-06 3438 seq_puts(m, " file=");
08582d678fcf11f Amir Goldstein 2023-10-09 3439 seq_path(m, file_user_path(file), "\n\t= ");
11250fd12eb8a58 Kefeng Wang 2023-07-28 3440 } else if (vma_is_initial_heap(vma)) {
17c2b4ee40beae2 Fabian Frederick 2014-06-06 3441 seq_puts(m, " heap");
11250fd12eb8a58 Kefeng Wang 2023-07-28 3442 } else if (vma_is_initial_stack(vma)) {
17c2b4ee40beae2 Fabian Frederick 2014-06-06 3443 seq_puts(m, " stack");
f69ff943df6972a Stephen Wilson 2011-05-24 3444 }
f69ff943df6972a Stephen Wilson 2011-05-24 3445
a79dda19fe434fd Lorenzo Stoakes (ARM 2026-09-17 3446) if (vma_is_hugetlb(vma))
17c2b4ee40beae2 Fabian Frederick 2014-06-06 3447 seq_puts(m, " huge");
fc360bd9cdcf875 Andrew Morton 2011-10-31 3448
ea3085dd7a4ec21 Suren Baghdasaryan 2026-04-25 3449 /* Skip walking pages if gate VMA */
ea3085dd7a4ec21 Suren Baghdasaryan 2026-04-25 3450 if (vma != get_gate_vma(proc_priv->lock_ctx.mm)) {
ea3085dd7a4ec21 Suren Baghdasaryan 2026-04-25 3451 /* Might sleep. Drop RCU read lock but keep the VMA locked. */
ea3085dd7a4ec21 Suren Baghdasaryan 2026-04-25 @3452 drop_rcu(proc_priv);
ea3085dd7a4ec21 Suren Baghdasaryan 2026-04-25 3453 walk_page_vma(vma, get_show_numa_ops(proc_priv), md);
ea3085dd7a4ec21 Suren Baghdasaryan 2026-04-25 @3454 reacquire_rcu(proc_priv);
ea3085dd7a4ec21 Suren Baghdasaryan 2026-04-25 3455 }
f69ff943df6972a Stephen Wilson 2011-05-24 3456
f69ff943df6972a Stephen Wilson 2011-05-24 3457 if (!md->pages)
f69ff943df6972a Stephen Wilson 2011-05-24 3458 goto out;
f69ff943df6972a Stephen Wilson 2011-05-24 3459
f69ff943df6972a Stephen Wilson 2011-05-24 3460 if (md->anon)
f69ff943df6972a Stephen Wilson 2011-05-24 3461 seq_printf(m, " anon=%lu", md->anon);
f69ff943df6972a Stephen Wilson 2011-05-24 3462
f69ff943df6972a Stephen Wilson 2011-05-24 3463 if (md->dirty)
f69ff943df6972a Stephen Wilson 2011-05-24 3464 seq_printf(m, " dirty=%lu", md->dirty);
f69ff943df6972a Stephen Wilson 2011-05-24 3465
f69ff943df6972a Stephen Wilson 2011-05-24 3466 if (md->pages != md->anon && md->pages != md->dirty)
f69ff943df6972a Stephen Wilson 2011-05-24 3467 seq_printf(m, " mapped=%lu", md->pages);
f69ff943df6972a Stephen Wilson 2011-05-24 3468
f69ff943df6972a Stephen Wilson 2011-05-24 3469 if (md->mapcount_max > 1)
f69ff943df6972a Stephen Wilson 2011-05-24 3470 seq_printf(m, " mapmax=%lu", md->mapcount_max);
f69ff943df6972a Stephen Wilson 2011-05-24 3471
f69ff943df6972a Stephen Wilson 2011-05-24 3472 if (md->swapcache)
f69ff943df6972a Stephen Wilson 2011-05-24 3473 seq_printf(m, " swapcache=%lu", md->swapcache);
f69ff943df6972a Stephen Wilson 2011-05-24 3474
a79dda19fe434fd Lorenzo Stoakes (ARM 2026-09-17 3475) if (md->active < md->pages && !vma_is_hugetlb(vma))
f69ff943df6972a Stephen Wilson 2011-05-24 3476 seq_printf(m, " active=%lu", md->active);
f69ff943df6972a Stephen Wilson 2011-05-24 3477
f69ff943df6972a Stephen Wilson 2011-05-24 3478 if (md->writeback)
f69ff943df6972a Stephen Wilson 2011-05-24 3479 seq_printf(m, " writeback=%lu", md->writeback);
f69ff943df6972a Stephen Wilson 2011-05-24 3480
948927ee9e4f35f David Rientjes 2013-11-12 3481 for_each_node_state(nid, N_MEMORY)
948927ee9e4f35f David Rientjes 2013-11-12 3482 if (md->node[nid])
948927ee9e4f35f David Rientjes 2013-11-12 3483 seq_printf(m, " N%d=%lu", nid, md->node[nid]);
198d1597cc5a12d Rafael Aquini 2015-02-12 3484
198d1597cc5a12d Rafael Aquini 2015-02-12 3485 seq_printf(m, " kernelpagesize_kB=%lu", vma_kernel_pagesize(vma) >> 10);
f69ff943df6972a Stephen Wilson 2011-05-24 3486 out:
f69ff943df6972a Stephen Wilson 2011-05-24 3487 seq_putc(m, '\n');
f69ff943df6972a Stephen Wilson 2011-05-24 3488 return 0;
f69ff943df6972a Stephen Wilson 2011-05-24 3489 }
5b52fc890bece77 Stephen Wilson 2011-05-24 3490
:::::: The code at line 3452 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-26 11:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-26 11:08 [linux-next:master 8327/9480] fs/proc/task_mmu.c:3452:3: error: implicit declaration of function 'drop_rcu'; did you mean 'drop_slab'? 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