projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acf7b0b
)
objtool: Don't consider vmlinux a C-file
author
Peter Zijlstra
<peterz@infradead.org>
Wed, 17 Jun 2020 16:22:31 +0000
(18:22 +0200)
committer
Peter Zijlstra
<peterz@infradead.org>
Thu, 25 Jun 2020 11:45:39 +0000
(13:45 +0200)
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
tools/objtool/check.c
patch
|
blob
|
history
diff --git
a/tools/objtool/check.c
b/tools/objtool/check.c
index 3e214f879adae3354d7b33063012fc2f68e0efe5..d8eaa7dc53d51867e17a7c463566bc2e5bc88f8e 100644
(file)
--- 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;