Uninlined drop_rcu() and reacquire_rcu() functions are not used when CONFIG_PROC_PAGE_MONITOR=n. Exclure them in this configuration. Fixes: 7edb437cbbfc ("proc/task_mmu: remove unnecessary inlines in function definitions") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202609121422.hkKWuy7K-lkp@intel.com/ Signed-off-by: Suren Baghdasaryan --- fs/proc/task_mmu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index 24425e230895..f8790a7095ff 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c @@ -184,6 +184,7 @@ static bool fallback_to_mmap_lock(struct proc_maps_private *priv, return true; } +#ifdef CONFIG_PROC_PAGE_MONITOR static void drop_rcu(struct proc_maps_private *priv) { if (priv->lock_ctx.mmap_locked) @@ -201,6 +202,7 @@ static void reacquire_rcu(struct proc_maps_private *priv) /* Reinitialize the iterator. */ vma_iter_set(&priv->iter, priv->lock_ctx.locked_vma->vm_end); } +#endif static struct vm_area_struct *proc_get_vma(struct seq_file *m, loff_t *ppos) { base-commit: baa8de2f3448d1466a888a805c18d01c998fe052 -- 2.55.0.1032.g73a4cd73de-goog