Skip to content

Commit 188d90f

Browse files
jpoimboeIngo Molnar
authored andcommitted
objtool: Append "()" to function name in "unexpected end of section" warning
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: c5995ab ("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
1 parent 0d75977 commit 188d90f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/objtool/check.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3761,7 +3761,7 @@ static int validate_branch(struct objtool_file *file, struct symbol *func,
37613761
return 0;
37623762

37633763
WARN("%s%sunexpected end of section %s",
3764-
func ? func->name : "", func ? ": " : "",
3764+
func ? func->name : "", func ? "(): " : "",
37653765
sec->name);
37663766
return 1;
37673767
}

0 commit comments

Comments
 (0)