diff options
author | Peter Zijlstra <peterz@infradead.org> | 2020-06-17 18:22:31 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2020-06-25 13:45:39 +0200 |
commit | 734d099ba644f5a92c70efa3d54d0ba2500ce162 (patch) | |
tree | 01804a8dd076f7470804ebfd8865ad02b8e4b6e7 /tools | |
parent | acf7b0bf7dcf5a96d9b44a0997227c7210d995c1 (diff) | |
download | linux-734d099ba644f5a92c70efa3d54d0ba2500ce162.tar.gz linux-734d099ba644f5a92c70efa3d54d0ba2500ce162.tar.bz2 linux-734d099ba644f5a92c70efa3d54d0ba2500ce162.zip |
objtool: Don't consider vmlinux a C-file
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
Diffstat (limited to 'tools')
-rw-r--r-- | tools/objtool/check.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/objtool/check.c b/tools/objtool/check.c index 3e214f879ada..d8eaa7dc53d5 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; |