[LTP] [PATCH 1/1] hugemmap34: Use lapi/mmap.h to fix build on old distros
Petr Vorel
pvorel@suse.cz
Fri Nov 1 17:40:46 CET 2024
Required on very old distros we still support:
* Ubuntu Bionic
* openSUSE Leap 42.2
Fixes: 21fdea4799 ("Migrating the libhugetlbfs/testcases/stack_grow_into_huge.c test")
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Trivial patch I'll merge tonight after CI finishes:
https://github.com/pevik/ltp/actions/runs/11632875155
testcases/kernel/mem/hugetlb/hugemmap/hugemmap34.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/testcases/kernel/mem/hugetlb/hugemmap/hugemmap34.c b/testcases/kernel/mem/hugetlb/hugemmap/hugemmap34.c
index 3f04376b65..a7a88fbb2d 100644
--- a/testcases/kernel/mem/hugetlb/hugemmap/hugemmap34.c
+++ b/testcases/kernel/mem/hugetlb/hugemmap/hugemmap34.c
@@ -20,6 +20,7 @@
* huge page-only segment -- resulting in bugs.
*/
+#include "lapi/mmap.h"
#include "hugetlb.h"
#include <errno.h>
--
2.45.2
More information about the ltp
mailing list