]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitb2d5bfea2d00a0000da18f7667c2b0e2c2f168d9
tree65e60d0efa18e0367fb23f73f12a907108a1685d
parent50ff9d130014f7b19541dbf607a615a72b75b778
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