]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
objtool: Replace iterator callback with for_each_sym_by_mangled_name()
authorJosh Poimboeuf <jpoimboe@kernel.org>
Mon, 13 Apr 2026 05:41:23 +0000 (22:41 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 5 May 2026 04:16:00 +0000 (21:16 -0700)
commit0333b7399587ee0aaa863ed0d13a00a6c7c64068
tree207bb9b005e4222dbd1d769937b71b79584dadb3
parent3de711fba73ad93b8b3fbe09cf681cefed5d573d
objtool: Replace iterator callback with for_each_sym_by_mangled_name()

Convert the callback-based iterate_sym_by_demangled_name() with a new
for_each_sym_by_demangled_name() macro.  This eliminates the callback
struct/function and makes the code more compact and readable.

Acked-by: Song Liu <song@kernel.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
tools/objtool/elf.c
tools/objtool/include/objtool/elf.h
tools/objtool/klp-diff.c