Skip to content

Commit cfd66e8

Browse files
t-8chjpoimboe
authored andcommitted
objtool: Make struct check_options static
It is not used outside of builtin-check.c. Also remove the unused declaration from builtin.h . Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Link: https://lore.kernel.org/r/20221216-objtool-memory-v2-2-17968f85a464@weissschuh.net Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
1 parent d93ee05 commit cfd66e8

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

tools/objtool/builtin-check.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static int parse_hacks(const struct option *opt, const char *str, int unset)
6565
return found ? 0 : -1;
6666
}
6767

68-
const struct option check_options[] = {
68+
static const struct option check_options[] = {
6969
OPT_GROUP("Actions:"),
7070
OPT_CALLBACK_OPTARG('h', "hacks", NULL, NULL, "jump_label,noinstr,skylake", "patch toolchain bugs/limitations", parse_hacks),
7171
OPT_BOOLEAN('i', "ibt", &opts.ibt, "validate and annotate IBT"),

tools/objtool/include/objtool/builtin.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
#include <subcmd/parse-options.h>
99

10-
extern const struct option check_options[];
11-
1210
struct opts {
1311
/* actions: */
1412
bool dump_orc;

0 commit comments

Comments
 (0)