[Devel] [PATCH hci-8.2 v2 05/18] ms/objtool/klp: Fix .data..once static local non-correlation
Eva Kurchatova
eva.kurchatova at virtuozzo.com
Wed Nov 25 09:03:47 MSK 2026
From: Josh Poimboeuf <jpoimboe at kernel.org>
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 at kernel.org>
Reviewed-by: Miroslav Benes <mbenes at suse.cz>
Signed-off-by: Josh Poimboeuf <jpoimboe at kernel.org>
(cherry picked from commit ff529864e738f447ff4c019956319930fc274a23)
https://virtuozzo.atlassian.net/browse/VSTOR-128510
Feature: klp-build support
Signed-off-by: Eva Kurchatova <eva.kurchatova at virtuozzo.com>
Reviewed-by: Sashiko <no-reply at sashiko.virtuozzo.com>
---
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 e0c64690c1e0..0f9ce6541e93 100644
--- a/tools/objtool/klp-diff.c
+++ b/tools/objtool/klp-diff.c
@@ -256,7 +256,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;
for (int i = 0; i < ARRAY_SIZE(vars); i++) {
--
2.56.1
More information about the Devel
mailing list