Skip to content

Commit

Permalink
objtool: Don't consider vmlinux a C-file
Browse files Browse the repository at this point in the history
Avoids issuing C-file warnings for vmlinux.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200618144801.701257527@infradead.org
  • Loading branch information
Peter Zijlstra committed Jun 25, 2020
1 parent acf7b0b commit 734d099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/objtool/check.c
Expand Up @@ -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;

Expand Down

0 comments on commit 734d099

Please sign in to comment.