Skip to contentSkip to conversation

selftests/mm: include linux/mman.h for prctl_thp_disable

PATCH New Usama Arif 1 participant 1 message Sep 10, 2025

Subsystems (3)
lore
Share & tools
lore

Usama Arif

author
#0 lore raw

PATCH 1/1 selftests/mm: include linux/mman.h for prctl_thp_disable

MADV_COLLAPSE is part of linux/mman.h and needs to be included for this selftest for glibc compatibility. It is also included in other tests that use MADV_COLLAPSE.

Fixes d9c7ff4dae62 ("selftests: prctl: introduce tests for disabling THPs completely")
---
 tools/testing/selftests/mm/prctl_thp_disable.c | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/mm/prctl_thp_disable.c +1 -0
index feb711dca3a1d..84b4a4b345af5 100644
@@ -9,6 +9,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <sys/mman.h>
+#include <linux/mman.h>
 #include <sys/prctl.h>
 #include <sys/wait.h>
 
Signature · 1 line
2.47.3