Skip to content

sched.h modernization -v2, phase #4: "Remove header dependencies"

Ingo Molnar lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest35 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/35sched/headers: Remove <linux/sched.h> from <linux/sched/topology.h>include/linux/sched/topology.h+0 -20 replies
2/35sched/headers: Remove tsk_is_polling()include/linux/sched/idle.h+0 -50 replies
3/35sched/headers: Remove <linux/sched.h> from <linux/sched/wake_q.h>include/linux/sched/wake_q.h+3 -20 replies
4/35sched/headers: Remove <linux/sched.h> from <linux/sched/clock.h>include/linux/sched/clock.h+1 -10 replies
5/35sched/headers: Remove <linux/sched.h> and <linux/slab.h> from <linux/delayacct.h>include/linux/delayacct.h+0 -20 replies
6/35sched/headers: Remove <linux/sched.h> from <linux/sched/loadavg.h>include/linux/sched/loadavg.h+0 -20 replies
7/35sched/headers: Remove <linux/sched.h> from <linux/sched/autogroup.h>include/linux/sched/autogroup.h+1 -20 replies
8/35sched/headers: Remove <linux/sched.h> from <linux/sched/mm.h>include/linux/sched/mm.h+2 -00 replies
9/35sched/headers: Remove <linux/sched.h> from <linux/sched/coredump.h>include/linux/sched/coredump.h+0 -10 replies
10/35sched/headers: Remove unused 'task_can_switch_user()' prototypeinclude/linux/sched.h+0 -30 replies
11/35sched/headers: Remove <linux/sched.h> from <linux/sched/user.h>include/linux/sched/user.h+2 -10 replies
12/35sched/headers: Remove #include <linux/capability.h> from <linux/sched.h>include/linux/sched.h+0 -10 replies
13/35sched/headers: Remove <linux/cgroup-defs.h> from <linux/sched.h>include/linux/sched.h include/target/target_core_base.h+1 -10 replies
14/35sched/headers: Remove <linux/sched.h> from <linux/sched/cpufreq.h>include/linux/sched/cpufreq.h+1 -10 replies
15/35kasan, sched/headers: Remove <linux/sched.h> from <linux/kasan.h>include/linux/kasan.h+0 -10 replies
16/35sched/headers: Remove <linux/cred.h> inclusion from <linux/sched.h>include/linux/sched.h+0 -10 replies
17/35sched/headers: Remove <asm/ptrace.h> from <linux/sched.h>include/linux/sched.h+0 -10 replies
18/35sched/headers: Remove <linux/rtmutex.h> from <linux/sched.h>include/linux/sched.h+0 -10 replies
19/35sched/headers: Remove the <linux/gfp.h> include from <linux/sched.h>include/linux/sched.h+0 -10 replies
20/35sched/headers: Remove <linux/sched.h> from <linux/sched/stat.h>include/linux/sched/stat.h+1 -10 replies
21/35sched/headers: Remove <linux/sched.h> from <linux/sched/nohz.h>include/linux/sched/nohz.h+0 -20 replies
22/35sched/headers: Remove <linux/sched.h> from <linux/sched/debug.h>include/linux/sched/debug.h+0 -20 replies
23/35sched/headers: Remove <linux/sched.h> from <linux/sched/hotplug.h>include/linux/sched/hotplug.h+0 -20 replies
24/35sched/headers: Remove the runqueue_is_locked() prototypeinclude/linux/sched.h+0 -20 replies
25/35sched/headers: Remove <linux/rwsem.h> from <linux/sched.h>include/linux/sched.h include/linux/user_namespace.h kernel/utsname_sysctl.c+2 -20 replies
26/35sched/headers: Remove <linux/signal.h> from <linux/sched.h>include/linux/sched.h+0 -10 replies
27/35sched/headers: Remove the 'init_pid_ns' prototype from <linux/sched.h>include/linux/sched.h+0 -20 replies
28/35sched/headers: Remove <linux/rculist.h> from <linux/sched.h>include/linux/sched.h+1 -10 replies
29/35sched/core: Remove unused prefetch_stack()arch/ia64/include/asm/processor.h arch/ia64/kernel/entry.S include/linux/sched.h+0 -310 replies
30/35sched/headers: Remove <linux/sched.h> from <linux/sched/init.h>include/linux/sched/init.h+0 -20 replies
31/35sched/headers: Remove <linux/magic.h> from <linux/sched/task_stack.h>include/linux/sched.h+0 -10 replies
32/35sched/headers, timers: Remove the <linux/sysctl.h> include from <linux/timer.h>include/linux/timer.h include/linux/user_namespace.h+2 -10 replies
33/35sched/headers, x86/apic: Remove the <linux/pm.h> header inclusion from <asm/apic.h>arch/x86/include/asm/apic.h+0 -10 replies
34/35sched/headers, hrtimer: Remove the <linux/wait.h> include from <linux/hrtimer.h>include/linux/hrtimer.h+0 -10 replies
35/35sched/headers: Remove the <linux/topology.h> include from <linux/sched.h>include/linux/sched.h include/linux/sched/topology.h+8 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/35] sched.h modernization -v2, phase #4: "Remove header dependencies"

This is phase #4 of the sched.h modernization series.

These remove header #include lines and remove prototypes and thus shrink the header dependency graph monotonically to the desired end result. These are small patches but most breakage will likely bisect to these, so their finegrained split-up is useful as well.

See the announcement for more details:

https://lkml.org/lkml/2017/2/8/564

The Git tree can be found at:

git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.sched/core

Thanks,

Ingo

Ingo Molnar (35):
sched/headers: Remove <linux/sched.h> from <linux/sched/topology.h> sched/headers: Remove tsk_is_polling()
sched/headers: Remove <linux/sched.h> from <linux/sched/wake_q.h> sched/headers: Remove <linux/sched.h> from <linux/sched/clock.h> sched/headers: Remove <linux/sched.h> and <linux/slab.h> from <linux/delayacct.h> sched/headers: Remove <linux/sched.h> from <linux/sched/loadavg.h> sched/headers: Remove <linux/sched.h> from <linux/sched/autogroup.h> sched/headers: Remove <linux/sched.h> from <linux/sched/mm.h> sched/headers: Remove <linux/sched.h> from <linux/sched/coredump.h> sched/headers: Remove unused 'task_can_switch_user()' prototype sched/headers: Remove <linux/sched.h> from <linux/sched/user.h> sched/headers: Remove #include <linux/capability.h> from <linux/sched.h> sched/headers: Remove <linux/cgroup-defs.h> from <linux/sched.h> sched/headers: Remove <linux/sched.h> from <linux/sched/cpufreq.h> kasan, sched/headers: Remove <linux/sched.h> from <linux/kasan.h> sched/headers: Remove <linux/cred.h> inclusion from <linux/sched.h> sched/headers: Remove <asm/ptrace.h> from <linux/sched.h> sched/headers: Remove <linux/rtmutex.h> from <linux/sched.h> sched/headers: Remove the <linux/gfp.h> include from <linux/sched.h> sched/headers: Remove <linux/sched.h> from <linux/sched/stat.h> sched/headers: Remove <linux/sched.h> from <linux/sched/nohz.h> sched/headers: Remove <linux/sched.h> from <linux/sched/debug.h> sched/headers: Remove <linux/sched.h> from <linux/sched/hotplug.h> sched/headers: Remove the runqueue_is_locked() prototype sched/headers: Remove <linux/rwsem.h> from <linux/sched.h> sched/headers: Remove <linux/signal.h> from <linux/sched.h> sched/headers: Remove the 'init_pid_ns' prototype from <linux/sched.h> sched/headers: Remove <linux/rculist.h> from <linux/sched.h> sched/core: Remove unused prefetch_stack()
sched/headers: Remove <linux/sched.h> from <linux/sched/init.h> sched/headers: Remove <linux/magic.h> from <linux/sched/task_stack.h> sched/headers, timers: Remove the <linux/sysctl.h> include from <linux/timer.h> sched/headers, x86/apic: Remove the <linux/pm.h> header inclusion from <asm/apic.h> sched/headers, hrtimer: Remove the <linux/wait.h> include from <linux/hrtimer.h> sched/headers: Remove the <linux/topology.h> include from <linux/sched.h>

 arch/ia64/include/asm/processor.h |  2 --
 arch/ia64/kernel/entry.S          | 23 -----------------------
 arch/x86/include/asm/apic.h       |  1 -
 include/linux/delayacct.h         |  2 --
 include/linux/hrtimer.h           |  1 -
 include/linux/kasan.h             |  1 -
 include/linux/sched.h             | 32 ++------------------------------
 include/linux/sched/autogroup.h   |  3 +--
 include/linux/sched/clock.h       |  2 +-
 include/linux/sched/coredump.h    |  1 -
 include/linux/sched/cpufreq.h     |  2 +-
 include/linux/sched/debug.h       |  2 --
 include/linux/sched/hotplug.h     |  2 --
 include/linux/sched/idle.h        |  5 -----
 include/linux/sched/init.h        |  2 --
 include/linux/sched/loadavg.h     |  2 --
 include/linux/sched/mm.h          |  2 ++
 include/linux/sched/nohz.h        |  2 --
 include/linux/sched/stat.h        |  2 +-
 include/linux/sched/topology.h    |  7 ++++++-
 include/linux/sched/user.h        |  3 ++-
 include/linux/sched/wake_q.h      |  5 +++--
 include/linux/timer.h             |  2 +-
 include/linux/user_namespace.h    |  2 ++
 include/target/target_core_base.h |  1 +
 kernel/utsname_sysctl.c           |  1 +
 26 files changed, 24 insertions(+), 86 deletions(-)
Signature · 1 line
2.7.4