]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
objtool/klp: Fix .data..once static local non-correlation
authorJosh Poimboeuf <jpoimboe@kernel.org>
Sun, 12 Apr 2026 04:11:24 +0000 (21:11 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 5 May 2026 04:15:59 +0000 (21:15 -0700)
While there was once a section named .data.once, it has since been
renamed to .data..once with commit dbefa1f31a91 ("Rename .data.once to
.data..once to fix resetting WARN*_ONCE").  Fix it.

Fixes: dd590d4d57eb ("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>
tools/objtool/klp-diff.c

index b1b068e9b4c7088d19e121576800b3ac19dfc21e..cb26c1c92a74a278f9c6099b98013fd9f86289c7 100644 (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, '.');