Skip to content

Commit

Permalink
sched/headers: Remove <linux/sched.h> and <linux/slab.h> from <linux/…
Browse files Browse the repository at this point in the history
…delayacct.h>

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>
Change-Id: Ifaed7a128723c5c459aa2796290e499fe8d318ef
Signed-off-by: TogoFire <togofire@mailfence.com>
  • Loading branch information
Ingo Molnar authored and TogoFire committed Sep 1, 2023
1 parent a8a8fe0 commit 18109d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions include/linux/delayacct.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions include/linux/fault-inject.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 18109d8

Please sign in to comment.