linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: oe-kbuild-all@lists.linux.dev,
	Linux Memory Management List <linux-mm@kvack.org>,
	Muhammad Usama Anjum <usama.anjum@collabora.com>
Subject: [linux-next:master 8126/8345] fs/proc/task_mmu.c:2105:3: error: implicit declaration of function 'pagemap_scan_backout_range'; did you mean 'pagemap_scan_push_range'?
Date: Wed, 27 Sep 2023 17:21:07 +0800	[thread overview]
Message-ID: <202309271719.sXq960r2-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   18030226a48de1fbfabf4ae16aaa2695a484254f
commit: 9ce57107e2c4448860ac500e6080f576fabc7081 [8126/8345] fs-proc-task_mmu-implement-ioctl-to-get-and-optionally-clear-info-about-ptes-fix-2
config: i386-randconfig-003-20230927 (https://download.01.org/0day-ci/archive/20230927/202309271719.sXq960r2-lkp@intel.com/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230927/202309271719.sXq960r2-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/202309271719.sXq960r2-lkp@intel.com/

All errors (new ones prefixed by >>):

   fs/proc/task_mmu.c: In function 'pagemap_scan_thp_entry':
>> fs/proc/task_mmu.c:2105:3: error: implicit declaration of function 'pagemap_scan_backout_range'; did you mean 'pagemap_scan_push_range'? [-Werror=implicit-function-declaration]
      pagemap_scan_backout_range(p, start, end);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~
      pagemap_scan_push_range
   cc1: some warnings being treated as errors


vim +2105 fs/proc/task_mmu.c

3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2068  
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2069  static int pagemap_scan_thp_entry(pmd_t *pmd, unsigned long start,
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2070  				  unsigned long end, struct mm_walk *walk)
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2071  {
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2072  #ifdef CONFIG_TRANSPARENT_HUGEPAGE
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2073  	struct pagemap_scan_private *p = walk->private;
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2074  	struct vm_area_struct *vma = walk->vma;
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2075  	unsigned long categories;
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2076  	spinlock_t *ptl;
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2077  	int ret = 0;
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2078  
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2079  	ptl = pmd_trans_huge_lock(pmd, vma);
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2080  	if (!ptl)
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2081  		return -ENOENT;
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2082  
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2083  	categories = p->cur_vma_category |
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2084  		     pagemap_thp_category(p, vma, start, *pmd);
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2085  
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2086  	if (!pagemap_scan_is_interesting_page(categories, p))
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2087  		goto out_unlock;
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2088  
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2089  	ret = pagemap_scan_output(categories, p, start, &end);
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2090  	if (start == end)
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2091  		goto out_unlock;
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2092  
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2093  	if (~p->arg.flags & PM_SCAN_WP_MATCHING)
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2094  		goto out_unlock;
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2095  	if (~categories & PAGE_IS_WRITTEN)
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2096  		goto out_unlock;
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2097  
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2098  	/*
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2099  	 * Break huge page into small pages if the WP operation
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2100  	 * needs to be performed on a portion of the huge page.
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2101  	 */
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2102  	if (end != start + HPAGE_SIZE) {
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2103  		spin_unlock(ptl);
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2104  		split_huge_pmd(vma, pmd, start);
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21 @2105  		pagemap_scan_backout_range(p, start, end);
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2106  		/* Report as if there was no THP */
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2107  		return -ENOENT;
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2108  	}
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2109  
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2110  	make_uffd_wp_pmd(vma, start, pmd);
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2111  	flush_tlb_range(vma, start, end);
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2112  out_unlock:
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2113  	spin_unlock(ptl);
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2114  	return ret;
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2115  #else /* !CONFIG_TRANSPARENT_HUGEPAGE */
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2116  	return -ENOENT;
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2117  #endif
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2118  }
3fa00ae945d61a Muhammad Usama Anjum 2023-08-21  2119  

:::::: The code at line 2105 was first introduced by commit
:::::: 3fa00ae945d61a07a53f7609dc86e7c832d7c535 fs/proc/task_mmu: implement IOCTL to get and optionally clear info about PTEs

:::::: TO: Muhammad Usama Anjum <usama.anjum@collabora.com>
:::::: CC: Andrew Morton <akpm@linux-foundation.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


                 reply	other threads:[~2023-09-27  9:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202309271719.sXq960r2-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-mm@kvack.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=usama.anjum@collabora.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox