From: Leon Hwang <leon.hwang@linux.dev>
To: Greg KH <greg@kroah.com>
Cc: stable@vger.kernel.org, akpm@linux-foundation.org,
david@redhat.com, lorenzo.stoakes@oracle.com, shuah@kernel.org,
linux-mm@kvack.org, linux-kernel@vger.kernel.org,
Lance Yang <lance.yang@linux.dev>
Subject: Re: [PATCH 6.1.y] selftests/mm: Move default_huge_page_size to vm_util.c
Date: Wed, 22 Oct 2025 21:34:52 +0800 [thread overview]
Message-ID: <70f8c6a1-cbb5-4a62-99aa-69b2f06bece2@linux.dev> (raw)
In-Reply-To: <2025102210-detection-blurred-8332@gregkh>
On 2025/10/22 16:20, Greg KH wrote:
> On Wed, Oct 22, 2025 at 04:08:45PM +0800, Leon Hwang wrote:
>>
>>
>> On 22/10/25 15:40, Greg KH wrote:
>>> On Wed, Oct 22, 2025 at 01:51:38PM +0800, Leon Hwang wrote:
>>>> Fix the build error:
>>>>
>>>> map_hugetlb.c: In function 'main':
>>>> map_hugetlb.c:79:25: warning: implicit declaration of function 'default_huge_page_size' [-Wimplicit-function-declaration]
>>>> 79 | hugepage_size = default_huge_page_size();
>>>> | ^~~~~~~~~~~~~~~~~~~~~~
>>>> /usr/bin/ld: /tmp/ccYOogvJ.o: in function 'main':
>>>> map_hugetlb.c:(.text+0x114): undefined reference to 'default_huge_page_size'
>>>>
>>>> According to the latest selftests, 'default_huge_page_size' has been
>>>> moved to 'vm_util.c'. So fix the error by the same way.
>>>>
>>>> Reviewed-by: Lance Yang <lance.yang@linux.dev>
>>>> Signed-off-by: Leon Hwang <leon.hwang@linux.dev>
>>>> ---
>>>> tools/testing/selftests/vm/Makefile | 1 +
>>>> tools/testing/selftests/vm/userfaultfd.c | 24 ------------------------
>>>> tools/testing/selftests/vm/vm_util.c | 21 +++++++++++++++++++++
>>>> tools/testing/selftests/vm/vm_util.h | 1 +
>>>> 4 files changed, 23 insertions(+), 24 deletions(-)
>>>
>>>
>>> What commit id does this fix? And again, why not just take the original
>>
>> Let me check which commit introduced the fix.
>>
>>> commits instead?
>>
>> I agree that taking the original commits would be preferable.
>>
>> However, it might involve quite a few patches to backport, which could
>> be a bit of work.
>
> We can easily take lots of patches, don't worry about the quantity. But
> it would be good to figure out what caused this to break here, and not
> in other branches.
>
Hi Greg,
After checking with 'git blame map_hugetlb.c', the issue was introduced
by commit a584c7734a4d (“selftests: mm: fix map_hugetlb failure on 64K
page size systems”), which corresponds to upstream commit 91b80cc5b39f.
This change appears to have caused the build error in the 6.1.y tree.
Comparing several stable trees shows the following:
- 6.0.y: not backported*
- 6.1.y: backported
- 6.2.y: not backported*
- 6.3.y: not backported*
- 6.4.y: not backported*
- 6.5.y: not backported*
- 6.6.y: backported
- 6.7.y: backported
Given this, it might be preferable to revert a584c7734a4d in 6.1.y for
consistency with the other stable trees (6.0.y, 6.2–6.5.y).
WDYT?
Thanks,
Leon
next prev parent reply other threads:[~2025-10-22 13:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-22 5:51 Leon Hwang
2025-10-22 6:01 ` Lance Yang
2025-10-22 6:07 ` Greg KH
2025-10-22 6:20 ` Leon Hwang
2025-10-22 7:35 ` Greg KH
2025-10-22 7:40 ` Greg KH
2025-10-22 8:08 ` Leon Hwang
2025-10-22 8:20 ` Greg KH
2025-10-22 13:34 ` Leon Hwang [this message]
2025-10-22 14:26 ` Greg KH
2025-10-22 15:35 ` Leon Hwang
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=70f8c6a1-cbb5-4a62-99aa-69b2f06bece2@linux.dev \
--to=leon.hwang@linux.dev \
--cc=akpm@linux-foundation.org \
--cc=david@redhat.com \
--cc=greg@kroah.com \
--cc=lance.yang@linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=lorenzo.stoakes@oracle.com \
--cc=shuah@kernel.org \
--cc=stable@vger.kernel.org \
/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