* Re: [PATCH] selftests:vm: add include file
2018-04-14 19:08 ` peng.hao2
(?)
@ 2018-04-14 17:28 ` rppt
-1 siblings, 0 replies; 6+ messages in thread
From: Mike Rapoport @ 2018-04-14 17:28 UTC (permalink / raw)
To: Peng Hao; +Cc: shuah, aarcange, akpm, linux-kselftest, linux-kernel
On Sun, Apr 15, 2018 at 03:08:56AM +0800, Peng Hao wrote:
> 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@zte.com.cn>
> ---
> 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>
The FALLOC_FL_PUNCH_HOLE definition should come from #include <fcntl.h>.
What are the versions of your kernel and the libc-development package?
> #ifdef __NR_userfaultfd
>
> --
> 1.8.3.1
>
--
Sincerely yours,
Mike.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH] selftests:vm: add include file
@ 2018-04-14 17:28 ` rppt
0 siblings, 0 replies; 6+ messages in thread
From: rppt @ 2018-04-14 17:28 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1153 bytes --]
On Sun, Apr 15, 2018 at 03:08:56AM +0800, Peng Hao wrote:
> 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 at zte.com.cn>
> ---
> 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>
The FALLOC_FL_PUNCH_HOLE definition should come from #include <fcntl.h>.
What are the versions of your kernel and the libc-development package?
> #ifdef __NR_userfaultfd
>
> --
> 1.8.3.1
>
--
Sincerely yours,
Mike.
--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH] selftests:vm: add include file
@ 2018-04-14 17:28 ` rppt
0 siblings, 0 replies; 6+ messages in thread
From: Mike Rapoport @ 2018-04-14 17:28 UTC (permalink / raw)
On Sun, Apr 15, 2018@03:08:56AM +0800, Peng Hao wrote:
> 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 at zte.com.cn>
> ---
> 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>
The FALLOC_FL_PUNCH_HOLE definition should come from #include <fcntl.h>.
What are the versions of your kernel and the libc-development package?
> #ifdef __NR_userfaultfd
>
> --
> 1.8.3.1
>
--
Sincerely yours,
Mike.
--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH] selftests:vm: add include file
@ 2018-04-14 19:08 ` peng.hao2
0 siblings, 0 replies; 6+ messages in thread
From: Peng Hao @ 2018-04-14 19:08 UTC (permalink / raw)
To: shuah, aarcange, akpm, rppt; +Cc: linux-kselftest, linux-kernel, Peng Hao
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@zte.com.cn>
---
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
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH] selftests:vm: add include file
@ 2018-04-14 19:08 ` peng.hao2
0 siblings, 0 replies; 6+ messages in thread
From: peng.hao2 @ 2018-04-14 19:08 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 874 bytes --]
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 at zte.com.cn>
---
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH] selftests:vm: add include file
@ 2018-04-14 19:08 ` peng.hao2
0 siblings, 0 replies; 6+ messages in thread
From: Peng Hao @ 2018-04-14 19:08 UTC (permalink / raw)
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 at zte.com.cn>
---
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-04-14 19:08 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-14 19:08 [PATCH] selftests:vm: add include file Peng Hao
2018-04-14 19:08 ` Peng Hao
2018-04-14 19:08 ` peng.hao2
2018-04-14 17:28 ` Mike Rapoport
2018-04-14 17:28 ` Mike Rapoport
2018-04-14 17:28 ` rppt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.