Re: [RFC][PATCH 3/2] livepatch: remove klp_check_compiler_support()
From: Josh Poimboeuf
Date: Fri May 10 2019 - 18:00:10 EST
On Fri, May 10, 2019 at 11:47:50PM +0200, Jiri Kosina wrote:
> From: Jiri Kosina <jkosina@xxxxxxx>
>
> 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.
>
> Reported-by: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
> Signed-off-by: Jiri Kosina <jkosina@xxxxxxx>
> ---
>
> I guess it makes most sense to merge this together with mcount removal in
> one go.
Acked-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
--
Josh