Re: [PATCH 3/3] static_call: Fix static_call_update() sanity check

From: Peter Zijlstra
Date: Thu Mar 18 2021 - 07:43:41 EST


On Thu, Mar 18, 2021 at 12:31:59PM +0100, Peter Zijlstra wrote:
> Sites that match init_section_contains() get marked as INIT. For
> built-in code init_sections contains both __init and __exit text. OTOH
> kernel_text_address() only explicitly includes __init text (and there
> are no __exit text markers).
>
> Match what jump_label already does and ignore the warning for INIT
> sites. Also see the excellent changelog for commit: 8f35eaa5f2de
> ("jump_label: Don't warn on __exit jump entries")

Note that I initially had a different fix and thought jump_label was
broken for not patching, but then found the above commit.