linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Muhammad Usama Anjum <usama.anjum@collabora.com>
To: "kernel test robot" <lkp@intel.com>,
	"Peter Xu" <peterx@redhat.com>,
	"Andrew Morton" <akpm@linux-foundation.org>,
	"Michał Mirosław" <emmir@google.com>,
	"Andrei Vagin" <avagin@gmail.com>,
	"Danylo Mocherniuk" <mdanylo@google.com>,
	"Paul Gofman" <pgofman@codeweavers.com>
Cc: Muhammad Usama Anjum <usama.anjum@collabora.com>,
	oe-kbuild-all@lists.linux.dev,
	Linux Memory Management List <linux-mm@kvack.org>,
	Alexander Viro <viro@zeniv.linux.org.uk>,
	Shuah Khan <skhan@linuxfoundation.org>,
	Christian Brauner <brauner@kernel.org>,
	Yang Shi <shy828301@gmail.com>, Vlastimil Babka <vbabka@suse.cz>,
	"Liam R . Howlett" <Liam.Howlett@oracle.com>,
	Yun Zhou <yun.zhou@windriver.com>,
	Suren Baghdasaryan <surenb@google.com>,
	Alex Sierra <alex.sierra@amd.com>,
	Matthew Wilcox <willy@infradead.org>,
	Pasha Tatashin <pasha.tatashin@soleen.com>,
	Axel Rasmussen <axelrasmussen@google.com>,
	"Gustavo A . R . Silva" <gustavoars@kernel.org>,
	Dan Williams <dan.j.williams@intel.com>,
	linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org,
	linux-kselftest@vger.kernel.org, Greg KH <greg@kroah.com>,
	kernel@collabora.com, Cyrill Gorcunov <gorcunov@gmail.com>,
	Mike Rapoport <rppt@kernel.org>, Nadav Amit <namit@vmware.com>
Subject: Re: [PATCH v32 2/6] fs/proc/task_mmu: Implement IOCTL to get and optionally clear info about PTEs
Date: Fri, 18 Aug 2023 14:55:36 +0500	[thread overview]
Message-ID: <ea2af063-67da-137b-1dc4-bace40568187@collabora.com> (raw)
In-Reply-To: <202308181520.yCq9Z26w-lkp@intel.com>

On 8/18/23 12:16 PM, kernel test robot wrote:
> Hi Muhammad,
> 
> kernel test robot noticed the following build errors:
> 
> [auto build test ERROR on akpm-mm/mm-everything]
> [also build test ERROR on next-20230817]
> [cannot apply to linus/master v6.5-rc6]
> [If your patch is applied to the wrong git tree, kindly drop us a note.
> And when submitting patch, we suggest to use '--base' as documented in
> https://git-scm.com/docs/git-format-patch#_base_tree_information]
> 
> url:    https://github.com/intel-lab-lkp/linux/commits/Muhammad-Usama-Anjum/userfaultfd-UFFD_FEATURE_WP_ASYNC/20230816-193454
> base:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
> patch link:    https://lore.kernel.org/r/20230816113049.1697849-3-usama.anjum%40collabora.com
> patch subject: [PATCH v32 2/6] fs/proc/task_mmu: Implement IOCTL to get and optionally clear info about PTEs
> config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20230818/202308181520.yCq9Z26w-lkp@intel.com/config)
> compiler: arceb-elf-gcc (GCC) 12.3.0
> reproduce: (https://download.01.org/0day-ci/archive/20230818/202308181520.yCq9Z26w-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/202308181520.yCq9Z26w-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:2077:28: error: 'HPAGE_SIZE' undeclared (first use in this function); did you mean 'PAGE_SIZE'?
>     2077 |         if (end != start + HPAGE_SIZE) {
>          |                            ^~~~~~~~~~
>          |                            PAGE_SIZE
I've been emailing arc maintainers for resolution of this error from April,
but nobody replies there:
https://lore.kernel.org/all/0e6b318a-bbf8-3701-00af-1802c6347897@collabora.com

>    fs/proc/task_mmu.c:2077:28: note: each undeclared identifier is reported only once for each function it appears in
> 
> 
> vim +2077 fs/proc/task_mmu.c
> 
>   2044	
>   2045	static int pagemap_scan_thp_entry(pmd_t *pmd, unsigned long start,
>   2046					  unsigned long end, struct mm_walk *walk)
>   2047	{
>   2048	#ifdef CONFIG_TRANSPARENT_HUGEPAGE
>   2049		struct pagemap_scan_private *p = walk->private;
>   2050		struct vm_area_struct *vma = walk->vma;
>   2051		unsigned long categories;
>   2052		spinlock_t *ptl;
>   2053		int ret = 0;
>   2054	
>   2055		ptl = pmd_trans_huge_lock(pmd, vma);
>   2056		if (!ptl)
>   2057			return -ENOENT;
>   2058	
>   2059		categories = p->cur_vma_category | pagemap_thp_category(*pmd);
>   2060	
>   2061		if (!pagemap_scan_is_interesting_page(categories, p))
>   2062			goto out_unlock;
>   2063	
>   2064		ret = pagemap_scan_output(categories, p, start, &end);
>   2065		if (start == end)
>   2066			goto out_unlock;
>   2067	
>   2068		if (~p->arg.flags & PM_SCAN_WP_MATCHING)
>   2069			goto out_unlock;
>   2070		if (~categories & PAGE_IS_WRITTEN)
>   2071			goto out_unlock;
>   2072	
>   2073		/*
>   2074		 * Break huge page into small pages if the WP operation
>   2075		 * needs to be performed on a portion of the huge page.
>   2076		 */
>> 2077		if (end != start + HPAGE_SIZE) {
>   2078			spin_unlock(ptl);
>   2079			split_huge_pmd(vma, pmd, start);
>   2080			pagemap_scan_backout_range(p, start, end);
>   2081			/* Report as if there was no THP */
>   2082			return -ENOENT;
>   2083		}
>   2084	
>   2085		make_uffd_wp_pmd(vma, start, pmd);
>   2086		flush_tlb_range(vma, start, end);
>   2087	out_unlock:
>   2088		spin_unlock(ptl);
>   2089		return ret;
>   2090	#else /* !CONFIG_TRANSPARENT_HUGEPAGE */
>   2091		return -ENOENT;
>   2092	#endif
>   2093	}
>   2094	
> 

-- 
BR,
Muhammad Usama Anjum


  reply	other threads:[~2023-08-18  9:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-16 11:30 [PATCH v32 0/6] " Muhammad Usama Anjum
2023-08-16 11:30 ` [PATCH v32 1/6] userfaultfd: UFFD_FEATURE_WP_ASYNC Muhammad Usama Anjum
2023-08-16 11:30 ` [PATCH v32 2/6] fs/proc/task_mmu: Implement IOCTL to get and optionally clear info about PTEs Muhammad Usama Anjum
2023-08-18  7:16   ` kernel test robot
2023-08-18  9:55     ` Muhammad Usama Anjum [this message]
2023-08-18 12:35       ` Philip Li
2023-08-19  1:04   ` Michał Mirosław
2023-08-21 14:11     ` Muhammad Usama Anjum
2023-08-16 11:30 ` [PATCH v32 4/6] tools headers UAPI: Update linux/fs.h with the kernel sources Muhammad Usama Anjum
2023-08-16 11:30 ` [PATCH v32 5/6] mm/pagemap: add documentation of PAGEMAP_SCAN IOCTL Muhammad Usama Anjum
2023-08-16 11:30 ` [PATCH v32 6/6] selftests: mm: add pagemap ioctl tests Muhammad Usama Anjum

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=ea2af063-67da-137b-1dc4-bace40568187@collabora.com \
    --to=usama.anjum@collabora.com \
    --cc=Liam.Howlett@oracle.com \
    --cc=akpm@linux-foundation.org \
    --cc=alex.sierra@amd.com \
    --cc=avagin@gmail.com \
    --cc=axelrasmussen@google.com \
    --cc=brauner@kernel.org \
    --cc=dan.j.williams@intel.com \
    --cc=emmir@google.com \
    --cc=gorcunov@gmail.com \
    --cc=greg@kroah.com \
    --cc=gustavoars@kernel.org \
    --cc=kernel@collabora.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=lkp@intel.com \
    --cc=mdanylo@google.com \
    --cc=namit@vmware.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pasha.tatashin@soleen.com \
    --cc=peterx@redhat.com \
    --cc=pgofman@codeweavers.com \
    --cc=rppt@kernel.org \
    --cc=shy828301@gmail.com \
    --cc=skhan@linuxfoundation.org \
    --cc=surenb@google.com \
    --cc=vbabka@suse.cz \
    --cc=viro@zeniv.linux.org.uk \
    --cc=willy@infradead.org \
    --cc=yun.zhou@windriver.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