From: Mike Rapoport <rppt@linux.vnet.ibm.com>
To: Peng Hao <peng.hao2@zte.com.cn>
Cc: shuah@kernel.org, aarcange@redhat.com, akpm@linux-foundation.org,
linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] selftests:vm: add include file
Date: Sat, 14 Apr 2018 20:28:27 +0300 [thread overview]
Message-ID: <20180414172826.GA3211@rapoport-lnx> (raw)
In-Reply-To: <1523732936-42546-1-git-send-email-peng.hao2@zte.com.cn>
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.
prev parent reply other threads:[~2018-04-14 17:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-14 19:08 Peng Hao
2018-04-14 17:28 ` Mike Rapoport [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180414172826.GA3211@rapoport-lnx \
--to=rppt@linux.vnet.ibm.com \
--cc=aarcange@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=peng.hao2@zte.com.cn \
--cc=shuah@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®