Skip to content

Commit cba6167

Browse files
author
Kent Overstreet
committed
restart_block: Trim includes
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>
1 parent 99bac36 commit cba6167

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

include/linux/restart_block.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
#include <linux/compiler.h>
99
#include <linux/types.h>
10-
#include <linux/time64.h>
1110

11+
struct __kernel_timespec;
1212
struct timespec;
1313
struct old_timespec32;
1414
struct pollfd;

include/linux/sched.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include <linux/mm_types_task.h>
3535
#include <linux/task_io_accounting.h>
3636
#include <linux/posix-timers_types.h>
37+
#include <linux/restart_block.h>
3738
#include <linux/rseq.h>
3839
#include <linux/seqlock_types.h>
3940
#include <linux/kcsan.h>

0 commit comments

Comments
 (0)