objtool: Have WARN_FUNC fall back to sym+off
authorPeter Zijlstra <peterz@infradead.org>
Tue, 8 Mar 2022 15:30:16 +0000 (16:30 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 15 Mar 2022 09:32:32 +0000 (10:32 +0100)
commit5cff2086b01526b8c7deacc86473ffbab0cddfa9
treea6d2b86a790cefbdc706ee1e3fcf2a353cd89a43
parent537da1ed54658e916141e50923a7f5b20c728856
objtool: Have WARN_FUNC fall back to sym+off

Currently WARN_FUNC() either prints func+off and failing that prints
sec+off, add an intermediate sym+off. This is useful when playing
around with entry code.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lore.kernel.org/r/20220308154317.461283840@infradead.org
tools/objtool/include/objtool/warn.h