From: sashiko-bot@kernel.org
To: "Baolin Wang" <baolin.wang@linux.alibaba.com>,
akpm@linux-foundation.org, david@kernel.org, hannes@cmpxchg.org,
kasong@tencent.com
Cc: baohua@kernel.org, axelrasmussen@google.com, yuanchu@google.com,
weixugc@google.com, baoquan.he@linux.dev, qi.zheng@linux.dev,
shakeel.butt@linux.dev, mhocko@kernel.org, linux-mm@kvack.org
Subject: Re: [PATCH] mm: mglru: use pte_table_clamped_end() helper to calculate the end
Date: Fri, 13 Nov 2026 11:13:15 +0000 [thread overview]
Message-ID: <sashiko-outbox-212685@kernel.org> (raw)
In-Reply-To: <b2386c5da61f9a15e60daa421b033bc1e0bcdd41.1794481498.git.baolin.wang@linux.alibaba.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] mm: mglru: call to undeclared pte_table_clamped_end() in
lru_gen_look_around()
--
commit 921adf1dcfd3cc8b15e0745e6085a76a09ac3fb5
Author: Baolin Wang <baolin.wang@linux.alibaba.com>
mm: mglru: use pte_table_clamped_end() helper to calculate the end
This commit replaces the open-coded PTE table and VMA end address
calculation in lru_gen_look_around() with pte_table_clamped_end().
> diff --git a/mm/vmscan.c b/mm/vmscan.c
> index 25a224746c36d..cb8635e41a38a 100644
> --- a/mm/vmscan.c
> +++ b/mm/vmscan.c
> @@ -4340,7 +4340,7 @@ bool lru_gen_look_around(struct page_vma_mapped_walk *pvmw, unsigned int nr)
> walk = current->reclaim_state ? current->reclaim_state->mm_walk : NULL;
>
> start = max(addr & PMD_MASK, vma->vm_start);
> - end = min(addr | ~PMD_MASK, vma->vm_end - 1) + 1;
> + end = pte_table_clamped_end(addr, vma->vm_end);
[Severity: High]
Does this break the build when CONFIG_LRU_GEN is enabled?
pte_table_clamped_end() is not declared or defined anywhere in the tree,
so compiling mm/vmscan.c fails with an implicit function declaration
error.
--
Sashiko AI review · https://sashiko.dev/#/patchset/b2386c5da61f9a15e60daa421b033bc1e0bcdd41.1794481498.git.baolin.wang@linux.alibaba.com?part=1
next prev parent reply other threads:[~2026-11-13 11:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-12 11:12 [PATCH] mm: mglru: use pte_table_clamped_end() helper to calculate the end Baolin Wang
2026-11-13 5:01 ` Barry Song
2026-11-13 5:31 ` Baolin Wang
2026-11-13 11:13 ` sashiko-bot [this message]
2026-11-13 11:54 ` Baolin Wang
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-212685@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=axelrasmussen@google.com \
--cc=baohua@kernel.org \
--cc=baolin.wang@linux.alibaba.com \
--cc=baoquan.he@linux.dev \
--cc=david@kernel.org \
--cc=hannes@cmpxchg.org \
--cc=kasong@tencent.com \
--cc=linux-mm@kvack.org \
--cc=mhocko@kernel.org \
--cc=qi.zheng@linux.dev \
--cc=sashiko-reviews@lists.linux.dev \
--cc=shakeel.butt@linux.dev \
--cc=weixugc@google.com \
--cc=yuanchu@google.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