Skip to content

Commit 1948172

Browse files
rantalashuahkh
authored andcommitted
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>
1 parent f825d3f commit 1948172

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

tools/testing/selftests/pidfd/pidfd_open_test.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include <inttypes.h>
77
#include <limits.h>
88
#include <linux/types.h>
9-
#include <linux/wait.h>
109
#include <sched.h>
1110
#include <signal.h>
1211
#include <stdbool.h>

tools/testing/selftests/pidfd/pidfd_poll_test.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#define _GNU_SOURCE
44
#include <errno.h>
55
#include <linux/types.h>
6-
#include <linux/wait.h>
76
#include <poll.h>
87
#include <signal.h>
98
#include <stdbool.h>

0 commit comments

Comments
 (0)