]> git.baikalelectronics.ru Git - kernel.git/commit
livepatch: Remove klp_check_compiler_support()
authorJiri Kosina <jkosina@suse.cz>
Fri, 10 May 2019 21:47:50 +0000 (23:47 +0200)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 10 May 2019 21:53:29 +0000 (17:53 -0400)
commit3ee9aea2f944212bc7569e76ec73d433e8aeba92
treeb86351525627ac853df3c0df5028699147bbe295
parent3b611bee355da3eadfd0a9d80d000eb22da23113
livepatch: Remove klp_check_compiler_support()

The only purpose of klp_check_compiler_support() is to make sure that we
are not using ftrace on x86 via mcount (because that's executed only after
prologue has already happened, and that's too late for livepatching
purposes).

Now that mcount is not supported by ftrace any more, there is no need for
klp_check_compiler_support() either.

Link: http://lkml.kernel.org/r/nycvar.YFH.7.76.1905102346100.17054@cbobk.fhfr.pm
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
arch/powerpc/include/asm/livepatch.h
arch/s390/include/asm/livepatch.h
arch/x86/include/asm/livepatch.h
kernel/livepatch/core.c