diff mbox series

[1/1] hugemmap34: Use lapi/mmap.h to fix build on old distros

Message ID 20241101164046.1294654-1-pvorel@suse.cz
State Accepted
Headers show
Series [1/1] hugemmap34: Use lapi/mmap.h to fix build on old distros | expand

Commit Message

Petr Vorel Nov. 1, 2024, 4:40 p.m. UTC
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(+)

Comments

Petr Vorel Nov. 1, 2024, 4:51 p.m. UTC | #1
Hi all,

> Trivial patch I'll merge tonight after CI finishes:
> https://github.com/pevik/ltp/actions/runs/11632875155

Merged!

Kind regards,
Petr
diff mbox series

Patch

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>