[tip: objtool/core] objtool/klp: Fix .data..once static local non-correlation
From: tip-bot2 for Josh Poimboeuf
Date: Tue May 05 2026 - 07:23:08 EST
The following commit has been merged into the objtool/core branch of tip:
Commit-ID: ff529864e738f447ff4c019956319930fc274a23
Gitweb: https://git.kernel.org/tip/ff529864e738f447ff4c019956319930fc274a23
Author: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
AuthorDate: Sat, 11 Apr 2026 21:11:24 -07:00
Committer: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
CommitterDate: Mon, 04 May 2026 21:15:59 -07: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 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@xxxxxxxxxx>
Reviewed-by: Miroslav Benes <mbenes@xxxxxxx>
Signed-off-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
---
tools/objtool/klp-diff.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/objtool/klp-diff.c b/tools/objtool/klp-diff.c
index b1b068e..cb26c1c 100644
--- a/tools/objtool/klp-diff.c
+++ b/tools/objtool/klp-diff.c
@@ -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, '.');