diff options
Diffstat (limited to 'tools/objtool/check.c')
-rw-r--r-- | tools/objtool/check.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/objtool/check.c b/tools/objtool/check.c index a8cb69a26576..ab6f0de7f90d 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <string.h> | 18 | #include <string.h> |
19 | #include <stdlib.h> | 19 | #include <stdlib.h> |
20 | 20 | ||
21 | #include "builtin.h" | ||
21 | #include "check.h" | 22 | #include "check.h" |
22 | #include "elf.h" | 23 | #include "elf.h" |
23 | #include "special.h" | 24 | #include "special.h" |
@@ -33,7 +34,6 @@ struct alternative { | |||
33 | }; | 34 | }; |
34 | 35 | ||
35 | const char *objname; | 36 | const char *objname; |
36 | static bool no_fp; | ||
37 | struct cfi_state initial_func_cfi; | 37 | struct cfi_state initial_func_cfi; |
38 | 38 | ||
39 | struct instruction *find_insn(struct objtool_file *file, | 39 | struct instruction *find_insn(struct objtool_file *file, |
@@ -2022,13 +2022,12 @@ static void cleanup(struct objtool_file *file) | |||
2022 | elf_close(file->elf); | 2022 | elf_close(file->elf); |
2023 | } | 2023 | } |
2024 | 2024 | ||
2025 | int check(const char *_objname, bool _no_fp, bool no_unreachable, bool orc) | 2025 | int check(const char *_objname, bool orc) |
2026 | { | 2026 | { |
2027 | struct objtool_file file; | 2027 | struct objtool_file file; |
2028 | int ret, warnings = 0; | 2028 | int ret, warnings = 0; |
2029 | 2029 | ||
2030 | objname = _objname; | 2030 | objname = _objname; |
2031 | no_fp = _no_fp; | ||
2032 | 2031 | ||
2033 | file.elf = elf_open(objname, orc ? O_RDWR : O_RDONLY); | 2032 | file.elf = elf_open(objname, orc ? O_RDWR : O_RDONLY); |
2034 | if (!file.elf) | 2033 | if (!file.elf) |