kasan, sched/headers: Uninline kasan_enable/disable_current()
authorIngo Molnar <mingo@kernel.org>
Fri, 3 Feb 2017 08:57:00 +0000 (09:57 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 2 Mar 2017 07:42:25 +0000 (08:42 +0100)
commitaf8601ad420f6afa6445c927ad9f36d9700d96d6
treeb33b49e2aec61c0c3fc666c84d39ee4547ddf42c
parent314ff7851fc8ea66cbf48eaa93d8ebfb5ca084a9
kasan, sched/headers: Uninline kasan_enable/disable_current()

<linux/kasan.h> is a low level header that is included early
in affected kernel headers. But it includes <linux/sched.h>
which complicates the cleanup of sched.h dependencies.

But kasan.h has almost no need for sched.h: its only use of
scheduler functionality is in two inline functions which are
not used very frequently - so uninline kasan_enable_current()
and kasan_disable_current().

Also add a <linux/sched.h> dependency to a .c file that depended
on kasan.h including it.

This paves the way to remove the <linux/sched.h> include from kasan.h.

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>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/kasan.h
lib/sbitmap.c
mm/kasan/kasan.c