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 commit dbefa1f31a ("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:
Josh Poimboeuf 2026-04-11 21:11:24 -07:00
parent 84c304a534
commit ff529864e7

View File

@ -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, '.');