sched/headers: Remove <linux/rwsem.h> from <linux/sched.h>
authorIngo Molnar <mingo@kernel.org>
Wed, 8 Feb 2017 17:51:58 +0000 (18:51 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 3 Mar 2017 00:45:36 +0000 (01:45 +0100)
This is a stray header that is not needed by anything in sched.h,
so remove it.

Update files that relied on the stray inclusion.

This reduces the size of the header dependency graph.

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>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/sched.h
include/linux/user_namespace.h
kernel/utsname_sysctl.c

index ac98255d00fb2bcec46c673cba26bc36a1a89ae0..b361f881fe447fd21367f6273e0346c65cd31ba3 100644 (file)
@@ -226,8 +226,6 @@ struct task_cputime {
 #define prof_exp       stime
 #define sched_exp      sum_exec_runtime
 
-#include <linux/rwsem.h>
-
 #ifdef CONFIG_SCHED_INFO
 struct sched_info {
        /* cumulative counters */
index 08264641b502bd26059c1a31996d85f576a7c935..faa9bfb827dae58ecc9e43f7527de0ee65c91bd3 100644 (file)
@@ -5,6 +5,7 @@
 #include <linux/nsproxy.h>
 #include <linux/ns_common.h>
 #include <linux/sched.h>
+#include <linux/rwsem.h>
 #include <linux/sysctl.h>
 #include <linux/err.h>
 
index c8eac43267e90d13aee860f9a10eb89282e408f2..233cd8fc691082363d6c324f1555aa1dd1f33c21 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/utsname.h>
 #include <linux/sysctl.h>
 #include <linux/wait.h>
+#include <linux/rwsem.h>
 
 #ifdef CONFIG_PROC_SYSCTL