From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DFE1E3812DB; Thu, 17 Sep 2026 03:11:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789614704; cv=none; b=GycuAmWWhCSAo19SRj3wn1llzusDdroSnjuNGvp6hPKCUlEAlUwHkwxKLbY9cvdvZ4e93Yil2Zo0CjWU2S6XqPmEhZDtrIuVNOYneHx4xUsvQ68ZXZ8HCy8vPqCGvkp5gHWMbuH5DzOTO0NFCf/eh0A8+SJ7DK/mVWEaMqtLysA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789614704; c=relaxed/simple; bh=NbGYQfvcFVItkR9TIAHQyFOTWfE9cJM/aBYDvFnjBIQ=; h=Date:From:To:Cc:Subject:Message-ID; b=XYv3wZa83wO1RSe4AJD/hQMiKELdB24pcFy1+lx/9UFqh6+ytYAjzb8x3PDCGrFrySal5Xojic1ltSKlbUHIXTYnphVLaoXU0sKFoRf30UtP8ngfp2ofqEt5EcfC/9onA9hmhFpqIncEqCKODfN7R5l0Vl48f2mhDxv9tBpCU8s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ivyLMJUe; arc=none smtp.client-ip=192.198.163.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ivyLMJUe" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1789614702; x=1821150702; h=date:from:to:cc:subject:message-id; bh=NbGYQfvcFVItkR9TIAHQyFOTWfE9cJM/aBYDvFnjBIQ=; b=ivyLMJUe9XKhLCgaAUGh4QJVDQ/2DKRNDJBF18/N+lIaOWLfHTYGOIwP rA+nK4rvyK2qRIxT72C5YXEa/dIzE9Vyj9GjLpm3dWBxhPlZD/sJamDqT Kp7pfLIv6jCAFW6w8GC4V707LfZ3mffN8tHcF0gfA8F7stFPbyYhNbVRQ EdSMNrhuZYy6OjIjjTSc0xfWVPF2FHofarhCZ58LTs8IlGeC0tojMWGH2 wc60pHHBIu11nPRWwuyt0H7B3AF6cYQ8NLhiJ+Y4blv9az4ymeIsa3JJU moWxgfGV2ESMGyYzFW13xYXlDMjiop/pyyAdYSJztChmaeEpx5rQ0WXNy Q==; X-CSE-ConnectionGUID: ZfJGAJLZQaCEus4kpHwAwQ== X-CSE-MsgGUID: qEmY0GgZSwSq4NtaABR0Jw== X-IronPort-AV: E=McAfee;i="6800,10657,11905"; a="115534556" X-IronPort-AV: E=Sophos;i="6.27,103,1787036400"; d="scan'208";a="115534556" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2026 20:11:41 -0700 X-CSE-ConnectionGUID: nfpyEJFmSmCGwPAjYY/nIQ== X-CSE-MsgGUID: 8qE6xmIJSbGsPWxGK4PnTg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,103,1787036400"; d="scan'208";a="277079898" Received: from lkp-server01.sh.intel.com (HELO 462990a40a85) ([10.239.97.150]) by orviesa003.jf.intel.com with ESMTP; 16 Sep 2026 20:11:39 -0700 Received: from kbuild by 462990a40a85 with local (Exim 4.98.2) (envelope-from ) id 1x72XA-0000000073l-2czK; Thu, 17 Sep 2026 03:11:36 +0000 Date: Thu, 17 Sep 2026 11:11:15 +0800 From: kernel test robot To: Suren Baghdasaryan Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, David Hildenbrand , Andrew Morton , Linux Memory Management List , mm-commits@vger.kernel.org Subject: [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 Message-ID: <202609171159.oaB1OaSG-lkp@intel.com> User-Agent: s-nail v14.9.25 Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: 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 | 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 :::::: CC: Andrew Morton -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki