sched/headers: Remove <linux/sched.h> and <linux/slab.h> from <linux/delayacct.h>
authorIngo Molnar <mingo@kernel.org>
Wed, 1 Feb 2017 15:36:40 +0000 (16:36 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 3 Mar 2017 00:45:28 +0000 (01:45 +0100)
The <linux/delayacct.h> file is a self-contained header and users of
it either don't need <linux/sched.h> and <linux/slab.h> - or have
already included it.

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>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/delayacct.h
include/linux/fault-inject.h

index 6b769cbd10001a404670cc2a2d24812a89e065ac..4178d24935477da5c02679ddba8dbadc22a48d2a 100644 (file)
@@ -18,8 +18,6 @@
 #define _LINUX_DELAYACCT_H
 
 #include <uapi/linux/taskstats.h>
-#include <linux/sched.h>
-#include <linux/slab.h>
 
 /*
  * Per-task flags relevant to delay accounting
index 9f4956d8601c111c57d27ca7205a04792d7e75dd..728d4e0292aa776a0d22141055ef17d650d41b2a 100644 (file)
@@ -61,6 +61,8 @@ static inline struct dentry *fault_create_debugfs_attr(const char *name,
 
 #endif /* CONFIG_FAULT_INJECTION */
 
+struct kmem_cache;
+
 #ifdef CONFIG_FAILSLAB
 extern bool should_failslab(struct kmem_cache *s, gfp_t gfpflags);
 #else