From: "David Hildenbrand (Arm)" <david@kernel.org>
To: Baolin Wang <baolin.wang@linux.alibaba.com>,
sashiko-reviews@lists.linux.dev, akpm@linux-foundation.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 14:16:53 +0100 [thread overview]
Message-ID: <575076ac-abb6-4e7b-95c8-872ea513ff50@kernel.org> (raw)
In-Reply-To: <9f0d2468-b086-457a-ad3b-a452020305f0@linux.alibaba.com>
On 11/13/26 12:54, Baolin Wang wrote:
>
>
> On 11/13/26 7:13 PM, sashiko-bot@kernel.org wrote:
>> 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.
>
> No. Because you applied the patch to the wrong tree (mm/mm-new). The helper has
> already been picked up in David's mm/core.git tree.
I'll get the relevant fix upstream next week. Once Andrew rebases he will be
able to pick this patch up :)
--
Cheers,
David
prev parent reply other threads:[~2026-11-13 13:17 UTC|newest]
Thread overview: 6+ 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
2026-11-13 11:54 ` Baolin Wang
2026-11-13 13:16 ` David Hildenbrand (Arm) [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=575076ac-abb6-4e7b-95c8-872ea513ff50@kernel.org \
--to=david@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=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