]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
selftests/mm: include linux/mman.h for prctl_thp_disable
authorUsama Arif <usamaarif642@gmail.com>
Wed, 10 Sep 2025 20:46:09 +0000 (21:46 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 12 Sep 2025 00:25:05 +0000 (17:25 -0700)
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.

Link: https://lkml.kernel.org/r/20250910204609.1720498-1-usamaarif642@gmail.com
Signed-off-by: Usama Arif <usamaarif642@gmail.com>
Reported-by: Mark Brown <broonie@kernel.org>
Closes: https://lore.kernel.org/all/c8249725-e91d-4c51-b9bb-40305e61e20d@sirena.org.uk/
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/prctl_thp_disable.c

index df3cce278e10ae99a39000e06112c3c980b82806..fbbce7c9b2f8c103c526b18da5bfe31adda31ec4 100644 (file)
@@ -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>