restart_block: Trim includes
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 11 Dec 2023 22:00:41 +0000 (17:00 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 21 Dec 2023 00:26:32 +0000 (19:26 -0500)
We don't actually use any timekeeping types, no need to pull in
time64.h.

Also, sched.h uses restart_block; add it as a direct dependency.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
include/linux/restart_block.h
include/linux/sched.h

index 980a65594412d95b56ed871b26fc5bbd06e11a69..13f17676c5f49d7680bf6e8ed8e5bad6e00a0219 100644 (file)
@@ -7,8 +7,8 @@
 
 #include <linux/compiler.h>
 #include <linux/types.h>
-#include <linux/time64.h>
 
+struct __kernel_timespec;
 struct timespec;
 struct old_timespec32;
 struct pollfd;
index d341a6c302d6534090aa48378142b31d780846ad..dd002d1937268ef26245f5c33b6e3c69ac4eac00 100644 (file)
@@ -34,6 +34,7 @@
 #include <linux/mm_types_task.h>
 #include <linux/task_io_accounting.h>
 #include <linux/posix-timers_types.h>
+#include <linux/restart_block.h>
 #include <linux/rseq.h>
 #include <linux/seqlock_types.h>
 #include <linux/kcsan.h>