Re: [PATCH 03/12] userfaultfd: selftests: vm: pick up sanitized kernel headers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2015-09-08 at 22:43 +0200, Andrea Arcangeli wrote:
> From: Thierry Reding <treding@xxxxxxxxxx>
> 
> Add the usr/include subdirectory of the top-level tree to the include
> path, and make sure to include headers without relative paths to make sure
> the sanitized headers get picked up.  Otherwise the compiler will not be
> able to find the linux/compiler.h header included by the non- sanitized
> include/uapi/linux/userfaultfd.h.
> 
> While at it, make sure to only hardcode the syscall numbers on x86 and
> PowerPC if they haven't been properly picked up from the headers.
> 
> Signed-off-by: Thierry Reding <treding@xxxxxxxxxx>
> Cc: Shuah Khan <shuahkh@xxxxxxxxxxxxxxx>
> Cc: Andrea Arcangeli <aarcange@xxxxxxxxxx>
> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> Signed-off-by: Andrea Arcangeli <aarcange@xxxxxxxxxx>
> ---
>  tools/testing/selftests/vm/Makefile      | 2 +-
>  tools/testing/selftests/vm/userfaultfd.c | 4 +++-
>  2 files changed, 4 insertions(+), 2 deletions(-)

This is not perfect, but better than what's there, so:

Acked-by: Michael Ellerman <mpe@xxxxxxxxxxxxxx>

cheers


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]