]> 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)
commitf41f945c8ad85897523aafec11c14d9ce984fdfd
tree65e60d0efa18e0367fb23f73f12a907108a1685d
parent4485ea30580158c4dc89eceb0bd908fd5b0fc4f2
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