[PATCH] selftests:vm: add include file
From: Peng Hao
Date: Sat Apr 14 2018 - 06:51:57 EST
userfaultfd.c: In function âhugetlb_release_pagesâ:
userfaultfd.c:145:25: error: âFALLOC_FL_PUNCH_HOLEâ undeclared
(first use in this function)
Signed-off-by: Peng Hao <peng.hao2@xxxxxxxxxx>
---
tools/testing/selftests/vm/userfaultfd.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/vm/userfaultfd.c b/tools/testing/selftests/vm/userfaultfd.c
index de2f9ec..d8fe447 100644
--- a/tools/testing/selftests/vm/userfaultfd.c
+++ b/tools/testing/selftests/vm/userfaultfd.c
@@ -68,6 +68,7 @@
#include <linux/userfaultfd.h>
#include <setjmp.h>
#include <stdbool.h>
+#include <linux/falloc.h>
#ifdef __NR_userfaultfd
--
1.8.3.1