Skip to content

Commit

Permalink
sched/headers: Remove <linux/rwsem.h> from <linux/sched.h>
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
Ingo Molnar committed Mar 3, 2017
1 parent fae3c30 commit cd9c513
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
1 change: 1 addition & 0 deletions include/linux/user_namespace.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
1 change: 1 addition & 0 deletions kernel/utsname_sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <linux/utsname.h>
#include <linux/sysctl.h>
#include <linux/wait.h>
#include <linux/rwsem.h>

#ifdef CONFIG_PROC_SYSCTL

Expand Down

0 comments on commit cd9c513

Please sign in to comment.