selftests-mm-fix-khugepaged_race-build-with-older-glibc.patch removed from -mm tree
The quilt patch titled
Subject: selftests/mm: fix khugepaged_race build with older glibc
has been removed from the -mm tree. Its filename was
selftests-mm-fix-khugepaged_race-build-with-older-glibc.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 (Huawei)" <[email protected]>
Subject: selftests/mm: fix khugepaged_race build with older glibc
Date: Tue, 27 Oct 2026 20:20:13 +0800
glibc versions before 2.37 do not define MADV_COLLAPSE in <sys/mman.h>, so khugepaged_race fails to build against them (e.g. glibc 2.34):
[root@localhost mm]# make
CC khugepaged_racekhugepaged_race.c: In function 'main':
khugepaged_race.c:506:23: error: 'MADV_COLLAPSE' undeclared (first use in this function); did you mean 'MADV_COLD'?
506 | hpage_pmd_size, MADV_COLLAPSE);
| ^~~~~~~~~~~~~
| MADV_COLDkhugepaged_race.c:506:23: note: each undeclared identifier is reported only once for each function it appears in
make: *** [../lib.mk:225: /data/code/mm/tools/testing/selftests/mm/khugepaged_race] Error 1
Include <linux/mman.h> to get the UAPI definition of MADV_COLLAPSE.
---
tools/testing/selftests/mm/khugepaged_race.c | 1 + 1 file changed, 1 insertion(+)
tools/testing/selftests/mm/khugepaged_race.c renamed from tools/testing/selftests/mm/khugepaged_race.c~selftests-mm-fix-khugepaged_race-build-with-older-glibc +1 -0
@@ -8,6 +8,7 @@#define _GNU_SOURCE#include <errno.h> #include <fcntl.h> +#include <linux/mman.h> #include <pthread.h> #include <stdio.h> #include <stdlib.h>
_
Patches currently in -mm which might be from [email protected] are
selftests-mm-skip-collapse_compound_extreme-on-thp-allocation-failure.patch mm-page_alloc-remove-unneeded-forward-declaration-of-__free_pages_ok.patch