Skip to content

Commit 6dfeff0

Browse files
Matthew Wilcox (Oracle)Kent Overstreet
authored andcommitted
wait: Remove uapi header file from main header file
There's really no overlap between uapi/linux/wait.h and linux/wait.h. There are two files which rely on the uapi file being implcitly included, so explicitly include it there and remove it from the main header file. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev> Reviewed-by: Christian Brauner <brauner@kernel.org>
1 parent 8b7787a commit 6dfeff0

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

include/linux/wait.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include <linux/spinlock.h>
1010

1111
#include <asm/current.h>
12-
#include <uapi/linux/wait.h>
1312

1413
typedef struct wait_queue_entry wait_queue_entry_t;
1514

kernel/exit.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@
6969
#include <linux/rethook.h>
7070
#include <linux/sysfs.h>
7171
#include <linux/user_events.h>
72-
7372
#include <linux/uaccess.h>
73+
74+
#include <uapi/linux/wait.h>
75+
7476
#include <asm/unistd.h>
7577
#include <asm/mmu_context.h>
7678

kernel/pid_namespace.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <linux/sched/task.h>
2424
#include <linux/sched/signal.h>
2525
#include <linux/idr.h>
26+
#include <uapi/linux/wait.h>
2627
#include "pid_sysctl.h"
2728

2829
static DEFINE_MUTEX(pid_caches_mutex);

0 commit comments

Comments
 (0)