diff options
author | Peter Zijlstra <peterz@infradead.org> | 2021-03-18 11:31:51 +0100 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2021-03-19 13:16:44 +0100 |
commit | 38c93587375053c5b9ef093f4a5ea754538cba32 (patch) | |
tree | 8c6554263f39529cfb04901f006415d4fdb83cac /kernel/entry | |
parent | 698bacefe993ad2922c9d3b1380591ad489355e9 (diff) |
static_call: Fix static_call_update() sanity check
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")
Fixes: 9183c3f9ed710 ("static_call: Add inline static call infrastructure")
Reported-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Jarkko Sakkinen <jarkko@kernel.org>
Tested-by: Sumit Garg <sumit.garg@linaro.org>
Link: https://lkml.kernel.org/r/20210318113610.739542434@infradead.org
Diffstat (limited to 'kernel/entry')
0 files changed, 0 insertions, 0 deletions