mirror of
https://github.com/torvalds/linux.git
synced 2026-09-27 02:22:02 +02:00
objtool/klp: Fix .data..once static local non-correlation
While there was once a section named .data.once, it has since been renamed to .data..once with commitdbefa1f31a("Rename .data.once to .data..once to fix resetting WARN*_ONCE"). Fix it. Fixes:dd590d4d57("objtool/klp: Introduce klp diff subcommand for diffing object files") Acked-by: Song Liu <song@kernel.org> Reviewed-by: Miroslav Benes <mbenes@suse.cz> Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
This commit is contained in:
parent
84c304a534
commit
ff529864e7
|
|
@ -257,7 +257,8 @@ static bool is_uncorrelated_static_local(struct symbol *sym)
|
|||
if (!is_object_sym(sym) || !is_local_sym(sym))
|
||||
return false;
|
||||
|
||||
if (!strcmp(sym->sec->name, ".data.once"))
|
||||
/* WARN_ONCE, etc */
|
||||
if (!strcmp(sym->sec->name, ".data..once"))
|
||||
return true;
|
||||
|
||||
dot = strchr(sym->name, '.');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user