Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "John J. Coleman" <jocolema@redhat.com>, linux-mm@kvack.org
Cc: zenghui.yu@linux.dev, akpm@linux-foundation.org,
	david@kernel.org, liam@infradead.org, ljs@kernel.org,
	mhocko@suse.com, peterx@redhat.com, rppt@kernel.org,
	surenb@google.com, vbabka@kernel.org, audra@redhat.com
Subject: Re: [PATCH] selftests/mm: allocate nr_pages based on pmd size for uffd pmd_move tests
Date: Sat, 14 Nov 2026 04:01:42 +0000	[thread overview]
Message-ID: <sashiko-outbox-214133@kernel.org> (raw)
In-Reply-To: <20261113040045.1439391-1-jocolema@redhat.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] selftests/mm: build failure from calling removed
  read_pmd_pagesize()
--

commit baaff8c2bca44f86cbdf0bcae24ee9317be43974
Author: John J. Coleman <jocolema@redhat.com>

selftests/mm: allocate nr_pages based on pmd size for uffd pmd_move tests

This commit adds a pre_alloc callback for the move-pmd uffd unit tests to
size nr_pages to twice the PMD page size divided by the base page size.

Link: https://lore.kernel.org/all/20261103202049.499206-1-jocolema@redhat.com

> diff --git a/tools/testing/selftests/mm/uffd-unit-tests.c b/tools/testing/selftests/mm/uffd-unit-tests.c
> index 9641f4730a355..9668dccc11599 100644
> --- a/tools/testing/selftests/mm/uffd-unit-tests.c
> +++ b/tools/testing/selftests/mm/uffd-unit-tests.c
> @@ -2484,6 +2484,20 @@ static void uffd_mmap_changing_test(uffd_global_test_opts_t *gopts, uffd_test_ar
>  	uffd_test_pass();
>  }
>  
> +static int set_pmd_pagesize_nr_pages(uffd_global_test_opts_t *gopts, const char **errmsg)
> +{
> +	uint64_t pmd_pagesize = read_pmd_pagesize();

[Severity: Medium]
Should this call pmd_psize() instead of read_pmd_pagesize()?  Commit
3fe017016527 ("kselftest: mm: rename read_pmd_pagesize() to pmd_psize()")
renamed this helper, so calling read_pmd_pagesize() breaks the build of
uffd-unit-tests.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261113040045.1439391-1-jocolema@redhat.com?part=1


      reply	other threads:[~2026-11-14  4:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-13  4:00 [PATCH] selftests/mm: allocate nr_pages based on pmd size for uffd pmd_move tests John J. Coleman
2026-11-14  4:01 ` sashiko-bot [this message]

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=sashiko-outbox-214133@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=audra@redhat.com \
    --cc=david@kernel.org \
    --cc=jocolema@redhat.com \
    --cc=liam@infradead.org \
    --cc=linux-mm@kvack.org \
    --cc=ljs@kernel.org \
    --cc=mhocko@suse.com \
    --cc=peterx@redhat.com \
    --cc=rppt@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=surenb@google.com \
    --cc=vbabka@kernel.org \
    --cc=zenghui.yu@linux.dev \
    /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