* [PATCH 6.12.y] selftests/mm: include kselftest.h in vm_util.h
@ 2026-11-13 9:10 Vernon Yang
0 siblings, 0 replies; only message in thread
From: Vernon Yang @ 2026-11-13 9:10 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.12.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: 6cd1e92981f8 ("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 823d07d84ad0..b3d1d17a09e4 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: d3417611a3b40b7f04a29e558cebac2bf69889d7
--
2.56.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-13 9:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-13 9:10 [PATCH 6.12.y] selftests/mm: include kselftest.h in vm_util.h Vernon Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®