Skip to content

Commit

Permalink
selftests: pidfd: fix compilation errors due to wait.h
Browse files Browse the repository at this point in the history
[ Upstream commit 1948172 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
rantala authored and gregkh committed Nov 18, 2020
1 parent 01fe7be commit 8abbccb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion tools/testing/selftests/pidfd/pidfd_open_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include <inttypes.h>
#include <limits.h>
#include <linux/types.h>
#include <linux/wait.h>
#include <sched.h>
#include <signal.h>
#include <stdbool.h>
Expand Down
1 change: 0 additions & 1 deletion tools/testing/selftests/pidfd/pidfd_poll_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#define _GNU_SOURCE
#include <errno.h>
#include <linux/types.h>
#include <linux/wait.h>
#include <poll.h>
#include <signal.h>
#include <stdbool.h>
Expand Down

0 comments on commit 8abbccb

Please sign in to comment.