Re: [PATCH 02/13] selftests: pidfd: fix compilation errors due to wait.h

From: Kees Cook
Date: Thu Oct 08 2020 - 16:12:12 EST


On Thu, Oct 08, 2020 at 03:26:22PM +0300, Tommi Rantala wrote:
> Drop unneeded <linux/wait.h> header inclusion to fix pidfd compilation
> errors seen in Fedora 32:
>
> In file included from pidfd_open_test.c:9:
> ../../../../usr/include/linux/wait.h:17:16: error: expected identifier before numeric constant
> 17 | #define P_ALL 0
> | ^
>
> Signed-off-by: Tommi Rantala <tommi.t.rantala@xxxxxxxxx>

Reviewed-by: Kees Cook <keescook@xxxxxxxxxxxx>

--
Kees Cook