selftests/mm: include linux/mman.h for prctl_thp_disable
Subsystems (3)
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")
Reported-by Mark Brown <[email protected]>
Signed-off-by Usama Arif <[email protected]>
--- tools/testing/selftests/mm/prctl_thp_disable.c | 1 + 1 file changed, 1 insertion(+)
tools/testing/selftests/mm/prctl_thp_disable.c +1 -0
@@ -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