objtool: Append "()" to function name in "unexpected end of section" warning
authorJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 1 Apr 2025 04:26:38 +0000 (21:26 -0700)
committerIngo Molnar <mingo@kernel.org>
Tue, 1 Apr 2025 07:07:12 +0000 (09:07 +0200)
Append with "()" to clarify it's a function.

Before:

  vmlinux.o: warning: objtool: cdns_mrvl_xspi_setup_clock: unexpected end of section .text.cdns_mrvl_xspi_setup_clock

After:

  vmlinux.o: warning: objtool: cdns_mrvl_xspi_setup_clock(): unexpected end of section .text.cdns_mrvl_xspi_setup_clock

Fixes: c5995abe1547 ("objtool: Improve error handling")
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/692e1e0d0b15a71bd35c6b4b87f3c75cd5a57358.1743481539.git.jpoimboe@kernel.org
tools/objtool/check.c

index e6c4eefe295ba1f3f41595012689a8721f4f5931..bd0c78bfe90c506543600b418799a22d35ed2661 100644 (file)
@@ -3761,7 +3761,7 @@ static int validate_branch(struct objtool_file *file, struct symbol *func,
                                return 0;
 
                        WARN("%s%sunexpected end of section %s",
-                            func ? func->name : "", func ? ": " : "",
+                            func ? func->name : "", func ? "(): " : "",
                             sec->name);
                        return 1;
                }