diff options
author | Ingo Molnar <mingo@kernel.org> | 2017-02-03 17:47:37 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-03-02 02:42:37 -0500 |
commit | f361bf4a66c9bfabace46f6ff5d97005c9b524fe (patch) | |
tree | e910b098afd67afe49b708518b0061c7c9971f1f | |
parent | e6d930b4e0115eb0732eec0efb11c3b09a8000fc (diff) |
sched/headers: Prepare for the reduction of <linux/sched.h>'s signal API dependency
Instead of including the full <linux/signal.h>, we are going to include the
types-only <linux/signal_types.h> header in <linux/sched.h>, to further
decouple the scheduler header from the signal headers.
This means that various files which relied on the full <linux/signal.h> need
to be updated to gain an explicit dependency on it.
Update the code that relies on sched.h's inclusion of the <linux/signal.h> header.
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/arm64/kernel/sys_compat.c | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_request.c | 1 | ||||
-rw-r--r-- | drivers/isdn/mISDN/stack.c | 2 | ||||
-rw-r--r-- | fs/btrfs/extent-tree.c | 1 | ||||
-rw-r--r-- | fs/btrfs/free-space-cache.c | 1 | ||||
-rw-r--r-- | fs/buffer.c | 1 | ||||
-rw-r--r-- | fs/ceph/addr.c | 1 | ||||
-rw-r--r-- | fs/dax.c | 1 | ||||
-rw-r--r-- | fs/ioctl.c | 2 | ||||
-rw-r--r-- | fs/iomap.c | 2 | ||||
-rw-r--r-- | fs/ocfs2/super.c | 1 | ||||
-rw-r--r-- | include/linux/sched.h | 1 | ||||
-rw-r--r-- | include/linux/sched/signal.h | 1 | ||||
-rw-r--r-- | kernel/pid_namespace.c | 1 | ||||
-rw-r--r-- | mm/page-writeback.c | 1 |
15 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm64/kernel/sys_compat.c b/arch/arm64/kernel/sys_compat.c index abaf582fc7a8..8b8bbd3eaa52 100644 --- a/arch/arm64/kernel/sys_compat.c +++ b/arch/arm64/kernel/sys_compat.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/compat.h> | 21 | #include <linux/compat.h> |
22 | #include <linux/personality.h> | 22 | #include <linux/personality.h> |
23 | #include <linux/sched.h> | 23 | #include <linux/sched.h> |
24 | #include <linux/sched/signal.h> | ||
24 | #include <linux/slab.h> | 25 | #include <linux/slab.h> |
25 | #include <linux/syscalls.h> | 26 | #include <linux/syscalls.h> |
26 | #include <linux/uaccess.h> | 27 | #include <linux/uaccess.h> |
diff --git a/drivers/gpu/drm/i915/i915_gem_request.c b/drivers/gpu/drm/i915/i915_gem_request.c index df3fef393dbe..e7c3c0318ff6 100644 --- a/drivers/gpu/drm/i915/i915_gem_request.c +++ b/drivers/gpu/drm/i915/i915_gem_request.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/dma-fence-array.h> | 26 | #include <linux/dma-fence-array.h> |
27 | #include <linux/sched.h> | 27 | #include <linux/sched.h> |
28 | #include <linux/sched/clock.h> | 28 | #include <linux/sched/clock.h> |
29 | #include <linux/sched/signal.h> | ||
29 | 30 | ||
30 | #include "i915_drv.h" | 31 | #include "i915_drv.h" |
31 | 32 | ||
diff --git a/drivers/isdn/mISDN/stack.c b/drivers/isdn/mISDN/stack.c index b324474c0c12..696f22fd5ab4 100644 --- a/drivers/isdn/mISDN/stack.c +++ b/drivers/isdn/mISDN/stack.c | |||
@@ -19,6 +19,8 @@ | |||
19 | #include <linux/mISDNif.h> | 19 | #include <linux/mISDNif.h> |
20 | #include <linux/kthread.h> | 20 | #include <linux/kthread.h> |
21 | #include <linux/sched.h> | 21 | #include <linux/sched.h> |
22 | #include <linux/signal.h> | ||
23 | |||
22 | #include "core.h" | 24 | #include "core.h" |
23 | 25 | ||
24 | static u_int *debug; | 26 | static u_int *debug; |
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index c35b96633554..dad395b0b9fc 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -16,6 +16,7 @@ | |||
16 | * Boston, MA 021110-1307, USA. | 16 | * Boston, MA 021110-1307, USA. |
17 | */ | 17 | */ |
18 | #include <linux/sched.h> | 18 | #include <linux/sched.h> |
19 | #include <linux/sched/signal.h> | ||
19 | #include <linux/pagemap.h> | 20 | #include <linux/pagemap.h> |
20 | #include <linux/writeback.h> | 21 | #include <linux/writeback.h> |
21 | #include <linux/blkdev.h> | 22 | #include <linux/blkdev.h> |
diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c index 1a131f7d6c1b..493a654b6012 100644 --- a/fs/btrfs/free-space-cache.c +++ b/fs/btrfs/free-space-cache.c | |||
@@ -18,6 +18,7 @@ | |||
18 | 18 | ||
19 | #include <linux/pagemap.h> | 19 | #include <linux/pagemap.h> |
20 | #include <linux/sched.h> | 20 | #include <linux/sched.h> |
21 | #include <linux/sched/signal.h> | ||
21 | #include <linux/slab.h> | 22 | #include <linux/slab.h> |
22 | #include <linux/math64.h> | 23 | #include <linux/math64.h> |
23 | #include <linux/ratelimit.h> | 24 | #include <linux/ratelimit.h> |
diff --git a/fs/buffer.c b/fs/buffer.c index 28484b3ebc98..9196f2a270da 100644 --- a/fs/buffer.c +++ b/fs/buffer.c | |||
@@ -19,6 +19,7 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include <linux/kernel.h> | 21 | #include <linux/kernel.h> |
22 | #include <linux/sched/signal.h> | ||
22 | #include <linux/syscalls.h> | 23 | #include <linux/syscalls.h> |
23 | #include <linux/fs.h> | 24 | #include <linux/fs.h> |
24 | #include <linux/iomap.h> | 25 | #include <linux/iomap.h> |
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c index f297a9e18642..1a3e1b40799a 100644 --- a/fs/ceph/addr.c +++ b/fs/ceph/addr.c | |||
@@ -8,6 +8,7 @@ | |||
8 | #include <linux/slab.h> | 8 | #include <linux/slab.h> |
9 | #include <linux/pagevec.h> | 9 | #include <linux/pagevec.h> |
10 | #include <linux/task_io_accounting_ops.h> | 10 | #include <linux/task_io_accounting_ops.h> |
11 | #include <linux/signal.h> | ||
11 | 12 | ||
12 | #include "super.h" | 13 | #include "super.h" |
13 | #include "mds_client.h" | 14 | #include "mds_client.h" |
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/pagevec.h> | 27 | #include <linux/pagevec.h> |
28 | #include <linux/pmem.h> | 28 | #include <linux/pmem.h> |
29 | #include <linux/sched.h> | 29 | #include <linux/sched.h> |
30 | #include <linux/sched/signal.h> | ||
30 | #include <linux/uio.h> | 31 | #include <linux/uio.h> |
31 | #include <linux/vmstat.h> | 32 | #include <linux/vmstat.h> |
32 | #include <linux/pfn_t.h> | 33 | #include <linux/pfn_t.h> |
diff --git a/fs/ioctl.c b/fs/ioctl.c index cb9b02940805..569db68d02b3 100644 --- a/fs/ioctl.c +++ b/fs/ioctl.c | |||
@@ -15,6 +15,8 @@ | |||
15 | #include <linux/writeback.h> | 15 | #include <linux/writeback.h> |
16 | #include <linux/buffer_head.h> | 16 | #include <linux/buffer_head.h> |
17 | #include <linux/falloc.h> | 17 | #include <linux/falloc.h> |
18 | #include <linux/sched/signal.h> | ||
19 | |||
18 | #include "internal.h" | 20 | #include "internal.h" |
19 | 21 | ||
20 | #include <asm/ioctls.h> | 22 | #include <asm/ioctls.h> |
diff --git a/fs/iomap.c b/fs/iomap.c index 0f85f2410605..3ca1a8e44135 100644 --- a/fs/iomap.c +++ b/fs/iomap.c | |||
@@ -26,6 +26,8 @@ | |||
26 | #include <linux/buffer_head.h> | 26 | #include <linux/buffer_head.h> |
27 | #include <linux/task_io_accounting_ops.h> | 27 | #include <linux/task_io_accounting_ops.h> |
28 | #include <linux/dax.h> | 28 | #include <linux/dax.h> |
29 | #include <linux/sched/signal.h> | ||
30 | |||
29 | #include "internal.h" | 31 | #include "internal.h" |
30 | 32 | ||
31 | /* | 33 | /* |
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index a24e42f95341..ca1646fbcaef 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c | |||
@@ -42,6 +42,7 @@ | |||
42 | #include <linux/seq_file.h> | 42 | #include <linux/seq_file.h> |
43 | #include <linux/quotaops.h> | 43 | #include <linux/quotaops.h> |
44 | #include <linux/cleancache.h> | 44 | #include <linux/cleancache.h> |
45 | #include <linux/signal.h> | ||
45 | 46 | ||
46 | #define CREATE_TRACE_POINTS | 47 | #define CREATE_TRACE_POINTS |
47 | #include "ocfs2_trace.h" | 48 | #include "ocfs2_trace.h" |
diff --git a/include/linux/sched.h b/include/linux/sched.h index 8ae7b3d85658..ea05116bc3c2 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -36,6 +36,7 @@ struct sched_param { | |||
36 | #include <linux/signal.h> | 36 | #include <linux/signal.h> |
37 | #include <linux/compiler.h> | 37 | #include <linux/compiler.h> |
38 | #include <linux/completion.h> | 38 | #include <linux/completion.h> |
39 | #include <linux/signal_types.h> | ||
39 | #include <linux/pid.h> | 40 | #include <linux/pid.h> |
40 | #include <linux/percpu.h> | 41 | #include <linux/percpu.h> |
41 | #include <linux/topology.h> | 42 | #include <linux/topology.h> |
diff --git a/include/linux/sched/signal.h b/include/linux/sched/signal.h index 0f4e9f4a43fd..7e10a7824523 100644 --- a/include/linux/sched/signal.h +++ b/include/linux/sched/signal.h | |||
@@ -1,6 +1,7 @@ | |||
1 | #ifndef _LINUX_SCHED_SIGNAL_H | 1 | #ifndef _LINUX_SCHED_SIGNAL_H |
2 | #define _LINUX_SCHED_SIGNAL_H | 2 | #define _LINUX_SCHED_SIGNAL_H |
3 | 3 | ||
4 | #include <linux/signal.h> | ||
4 | #include <linux/cred.h> | 5 | #include <linux/cred.h> |
5 | #include <linux/sched.h> | 6 | #include <linux/sched.h> |
6 | #include <linux/sched/jobctl.h> | 7 | #include <linux/sched/jobctl.h> |
diff --git a/kernel/pid_namespace.c b/kernel/pid_namespace.c index 7c8367854dc4..de461aa0bf9a 100644 --- a/kernel/pid_namespace.c +++ b/kernel/pid_namespace.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <linux/reboot.h> | 20 | #include <linux/reboot.h> |
21 | #include <linux/export.h> | 21 | #include <linux/export.h> |
22 | #include <linux/sched/task.h> | 22 | #include <linux/sched/task.h> |
23 | #include <linux/sched/signal.h> | ||
23 | 24 | ||
24 | struct pid_cache { | 25 | struct pid_cache { |
25 | int nr_ids; | 26 | int nr_ids; |
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 26a60818a8fc..d8ac2a7fb9e7 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c | |||
@@ -36,6 +36,7 @@ | |||
36 | #include <linux/pagevec.h> | 36 | #include <linux/pagevec.h> |
37 | #include <linux/timer.h> | 37 | #include <linux/timer.h> |
38 | #include <linux/sched/rt.h> | 38 | #include <linux/sched/rt.h> |
39 | #include <linux/sched/signal.h> | ||
39 | #include <linux/mm_inline.h> | 40 | #include <linux/mm_inline.h> |
40 | #include <trace/events/writeback.h> | 41 | #include <trace/events/writeback.h> |
41 | 42 | ||