]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
objtool/klp: Don't report uncorrelated functions as new
authorJosh Poimboeuf <jpoimboe@kernel.org>
Mon, 13 Apr 2026 08:59:31 +0000 (01:59 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 5 May 2026 04:16:00 +0000 (21:16 -0700)
commit76eb0f8639fbc6bcc0e7c1ca649c456bfebc4d5c
treed28d79241fc01cf4d6b2bdfbf0dae22f7430cd96
parent0a7823d1d70dd17fbf0e9771d9afd5067a69ded0
objtool/klp: Don't report uncorrelated functions as new

Clang LTO uses __UNIQUE_ID() to generate some uniquely named wrapper
functions, like initstubs.  If they're uncorrelated, prevent them from
being reported as new functions and included unnecessarily.

Note that dont_correlate() already includes prefix functions, so prefix
functions are still being ignored here.

Acked-by: Song Liu <song@kernel.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
tools/objtool/klp-diff.c