extable: Make init_kernel_text() global
authorJosh Poimboeuf <jpoimboe@redhat.com>
Tue, 20 Feb 2018 17:37:53 +0000 (11:37 -0600)
committerIngo Molnar <mingo@kernel.org>
Wed, 21 Feb 2018 15:54:06 +0000 (16:54 +0100)
commit9fbcc57aa16424ef84cb54e0d9db3221763de88a
tree9606cd83a450c2ff03dfb9c83f30f6906d396e33
parentdc1dd184c2f0016bec35c0d7a48c057e0ad763d3
extable: Make init_kernel_text() global

Convert init_kernel_text() to a global function and use it in a few
places instead of manually comparing _sinittext and _einittext.

Note that kallsyms.h has a very similar function called
is_kernel_inittext(), but its end check is inclusive.  I'm not sure
whether that's intentional behavior, so I didn't touch it.

Suggested-by: Jason Baron <jbaron@akamai.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Cc: Borislav Petkov <bp@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/4335d02be8d45ca7d265d2f174251d0b7ee6c5fd.1519051220.git.jpoimboe@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/unwind_orc.c
include/linux/kernel.h
kernel/extable.c
kernel/jump_label.c