selftests/mm: include kselftest.h in vm_util.h
PATCH 1/1 selftests/mm: include kselftest.h in vm_util.h
From: Vernon Yang <[email protected]>
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.
--- tools/testing/selftests/mm/vm_util.h | 1 + 1 file changed, 1 insertion(+)
tools/testing/selftests/mm/vm_util.h +1 -0
@@ -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
Signature · 1 line
2.56.0
Quoted 1 line · Vernon Yang
Subject: [PATCH 6.12.y] selftests/mm: include
kselftest.hinvm_util.h
Queued for 6.12, thanks.
Signature · 2 lines
Thanks, Sasha