selftests-mm-hmm-tests-include-linux-mmanh-to-access-madv_collapse.patch removed from -mm tree
The quilt patch titled
Subject: selftests/mm: hmm-tests: include linux/mman.h to access MADV_COLLAPSE
has been removed from the -mm tree. Its filename was
selftests-mm-hmm-tests-include-linux-mmanh-to-access-madv_collapse.patch
This patch was dropped because it was merged into the mm-hotfixes-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Zenghui Yu <[email protected]>
Subject: selftests/mm: hmm-tests: include linux/mman.h to access MADV_COLLAPSE
Date: Sun, 28 Jun 2026 22:31:11 +0800
The following compilation error occurs with an old version of glibc due to a recent commit adding MADV_COLLAPSE testing:
[root@localhost mm]# getconf GNU_LIBC_VERSION
glibc 2.34
[root@localhost mm]# make
CC hmm-tests
hmm-tests.c: In function 'hmm_migrate_anon_huge_fault':
hmm-tests.c:2355:27: error: 'MADV_COLLAPSE' undeclared (first use in this function); did you mean 'MADV_COLD'?
2355 | ret = madvise(map, size, MADV_COLLAPSE);
| ^~~~~~~~~~~~~
| MADV_COLD hmm-tests.c:2355:27: note: each undeclared identifier is reported only once for each function it appears in
make: *** [../lib.mk:225: /root/code/linux/tools/testing/selftests/mm/hmm-tests] Error 1
Include linux/mman.h (which provides the definition of MADV_COLLAPSE) to fix the build error.
---
tools/testing/selftests/mm/hmm-tests.c | 1 + 1 file changed, 1 insertion(+)
tools/testing/selftests/mm/hmm-tests.c renamed from tools/testing/selftests/mm/hmm-tests.c~selftests-mm-hmm-tests-include-linux-mmanh-to-access-madv_collapse +1 -0
@@ -23,6 +23,7 @@#include <time.h> #include <pthread.h> #include <limits.h> +#include <linux/mman.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/mman.h>
_
Patches currently in -mm which might be from [email protected] are
tools-mm-add-thp_swap_allocator_test-binary-to-gitignore.patch