* [PATCH 6.6.y] selftests/mm: include kselftest.h in vm_util.h
@ 2026-11-13 9:00 Vernon Yang
0 siblings, 0 replies; only message 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 [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-13 9:01 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:00 [PATCH 6.6.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®