The following commit has been merged into the x86/entry branch of tip: Commit-ID: 734d099ba644f5a92c70efa3d54d0ba2500ce162 Gitweb: https://git.kernel.org/tip/734d099ba644f5a92c70efa3d54d0ba2500ce162 Author: Peter Zijlstra <peterz@xxxxxxxxxxxxx> AuthorDate: Wed, 17 Jun 2020 18:22:31 +02:00 Committer: Peter Zijlstra <peterz@xxxxxxxxxxxxx> CommitterDate: Thu, 25 Jun 2020 13:45:39 +02:00 objtool: Don't consider vmlinux a C-file Avoids issuing C-file warnings for vmlinux. Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx> Link: https://lkml.kernel.org/r/20200618144801.701257527@xxxxxxxxxxxxx --- tools/objtool/check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/objtool/check.c b/tools/objtool/check.c index 3e214f8..d8eaa7d 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -2772,7 +2772,7 @@ int check(const char *_objname, bool orc) INIT_LIST_HEAD(&file.insn_list); hash_init(file.insn_hash); - file.c_file = find_section_by_name(file.elf, ".comment"); + file.c_file = !vmlinux && find_section_by_name(file.elf, ".comment"); file.ignore_unreachables = no_unreachable; file.hints = false;
![]() |