wait: Remove uapi header file from main header file
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 11 Dec 2023 18:14:41 +0000 (18:14 +0000)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 21 Dec 2023 00:26:31 +0000 (19:26 -0500)
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>
include/linux/wait.h
kernel/exit.c
kernel/pid_namespace.c

index 3473b663176f11073ab574fdefa6cced0c137303..8aa3372f21a080caf2738799700bd965fbd2198f 100644 (file)
@@ -9,7 +9,6 @@
 #include <linux/spinlock.h>
 
 #include <asm/current.h>
-#include <uapi/linux/wait.h>
 
 typedef struct wait_queue_entry wait_queue_entry_t;
 
index ee9f43bed49a240ac60c9f4054c663374e36ccf0..2ef33047371bcfe6fd9de007266333fa3d00c9c5 100644 (file)
 #include <linux/rethook.h>
 #include <linux/sysfs.h>
 #include <linux/user_events.h>
-
 #include <linux/uaccess.h>
+
+#include <uapi/linux/wait.h>
+
 #include <asm/unistd.h>
 #include <asm/mmu_context.h>
 
index 3028b2218aa4485f0aae1c00826f44e952116776..7ade20e95232145512de411b42851e2c85437772 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/sched/task.h>
 #include <linux/sched/signal.h>
 #include <linux/idr.h>
+#include <uapi/linux/wait.h>
 #include "pid_sysctl.h"
 
 static DEFINE_MUTEX(pid_caches_mutex);