]> git.baikalelectronics.ru Git - kernel.git/commit
sched/headers, timers: Remove the <linux/sysctl.h> include from <linux/timer.h>
authorIngo Molnar <mingo@kernel.org>
Mon, 6 Feb 2017 08:56:40 +0000 (09:56 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 3 Mar 2017 00:45:39 +0000 (01:45 +0100)
commitf09abcc47f8c3b2ab3e5117dd48c287680d83f21
tree65e60d0efa18e0367fb23f73f12a907108a1685d
parenteffca0a46bb1a10967c2d1a9687e452fd3a88dab
sched/headers, timers: Remove the <linux/sysctl.h> include from <linux/timer.h>

So we want to simplify <linux/sched.h>'s header dependencies, but one
roadblock of that is <linux/timer.h>'s inclusion of sysctl.h,
which brings in other, problematic headers.

Note that timer.h's inclusion of sysctl.h can be avoided if we
pre-declare ctl_table - so do that.

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/timer.h
include/linux/user_namespace.h