Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH 6.6.y] selftests/mm: include kselftest.h in vm_util.h
@ 2026-11-13  9:00 Vernon Yang
  2026-11-13 19:09 ` Sasha Levin
  0 siblings, 1 reply; 2+ messages in thread
From: Vernon Yang @ 2026-11-13  9:00 UTC (permalink / raw)
  To: stable, gregkh, sashal
  Cc: akpm, shuah, liwang, jackmanb, linux-kernel, Vernon Yang

From: Vernon Yang <yanglincheng@kylinos.cn>

commit d8a866c766ebe34b4371d42f4a3edca200f5e645 upstream.

The 6.6.y backport of commit fdc3bc349794 ("ksm_tests: skip hugepage
test when Transparent Hugepages are disabled"), added a KSFT_SKIP return
to khugepaged.c, but the prerequisite include from upstream commit
d8a866c766eb ("selftests/mm: add commentary about 9pfs bugs") was not
backported.

As a result, the selftests/mm build fails:

  khugepaged.c:1195:24: error: ‘KSFT_SKIP’ undeclared (first use in this function)

Add the missing include, only the vm_util.h hunk of commit d8a866c766eb
("selftests/mm: add commentary about 9pfs bugs") is needed here.

The remaining hunks depend on commit 32b42970e861 ("selftests/mm: skip
gup_longterm tests on weird filesystems") and commit 571a4b62ed63
("selftests/mm: skip map_populate on weird filesystems"), which are not
present in this tree, so we don't need to backport the remaining hunks.

Fixes: 6b117e23481d ("ksm_tests: skip hugepage test when Transparent Hugepages are disabled")
Signed-off-by: Vernon Yang <yanglincheng@kylinos.cn>
---
 tools/testing/selftests/mm/vm_util.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/testing/selftests/mm/vm_util.h b/tools/testing/selftests/mm/vm_util.h
index 9816d6e9bce6..f14ebc809585 100644
--- a/tools/testing/selftests/mm/vm_util.h
+++ b/tools/testing/selftests/mm/vm_util.h
@@ -5,6 +5,7 @@
 #include <err.h>
 #include <strings.h> /* ffsl() */
 #include <unistd.h> /* _SC_PAGESIZE */
+#include "../kselftest.h"
 
 #define BIT_ULL(nr)                   (1ULL << (nr))
 #define PM_SOFT_DIRTY                 BIT_ULL(55)

base-commit: 5139929c698c273e07cb0635732f6a918a7b8e78
-- 
2.56.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 6.6.y] selftests/mm: include kselftest.h in vm_util.h
  2026-11-13  9:00 [PATCH 6.6.y] selftests/mm: include kselftest.h in vm_util.h Vernon Yang
@ 2026-11-13 19:09 ` Sasha Levin
  0 siblings, 0 replies; 2+ messages in thread
From: Sasha Levin @ 2026-11-13 19:09 UTC (permalink / raw)
  To: stable, gregkh
  Cc: Sasha Levin, akpm, shuah, liwang, jackmanb, linux-kernel,
	Vernon Yang, Vernon Yang

On Fri, Nov 13, 2026, Vernon Yang wrote:
> Subject: [PATCH 6.6.y] selftests/mm: include kselftest.h in vm_util.h

Queued for 6.6, thanks.

-- 
Thanks,
Sasha

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-13 19:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-13  9:00 [PATCH 6.6.y] selftests/mm: include kselftest.h in vm_util.h Vernon Yang
2026-11-13 19:09 ` Sasha Levin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox