Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: pidfd: fix compilation errors due to wait.h

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@nokia.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Tommi Rantala and committed by
Shuah Khan
1948172f f825d3f7

-2
-1
tools/testing/selftests/pidfd/pidfd_open_test.c
··· 6 6 #include <inttypes.h> 7 7 #include <limits.h> 8 8 #include <linux/types.h> 9 - #include <linux/wait.h> 10 9 #include <sched.h> 11 10 #include <signal.h> 12 11 #include <stdbool.h>
-1
tools/testing/selftests/pidfd/pidfd_poll_test.c
··· 3 3 #define _GNU_SOURCE 4 4 #include <errno.h> 5 5 #include <linux/types.h> 6 - #include <linux/wait.h> 7 6 #include <poll.h> 8 7 #include <signal.h> 9 8 #include <stdbool.h>