linux/mm/kasan
Ingo Molnar af8601ad42 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>
2017-03-02 08:42:25 +01:00
..
Makefile mm, kasan: switch SLUB to stackdepot, enable memory quarantine for SLUB 2016-07-28 16:07:41 -07:00
kasan.c kasan, sched/headers: Uninline kasan_enable/disable_current() 2017-03-02 08:42:25 +01:00
kasan.h kasan: support use-after-scope detection 2016-11-30 16:32:52 -08:00
kasan_init.c mm/kasan: Switch to using __pa_symbol and lm_alias 2017-01-11 13:56:50 +00:00
quarantine.c kasan: drain quarantine of memcg slab objects 2017-02-24 17:46:56 -08:00
report.c kasan: respect /proc/sys/kernel/traceoff_on_warning 2017-02-03 14:13:19 -08:00