objtool: Make struct check_options static
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 27 Dec 2022 16:00:58 +0000 (16:00 +0000)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 1 Feb 2023 17:15:23 +0000 (09:15 -0800)
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>
tools/objtool/builtin-check.c
tools/objtool/include/objtool/builtin.h

index a4f39407bf59a76dc0d6c4301f215d8506b4aabd..7c175198d09fc7a510713c26649af960a867a130 100644 (file)
@@ -65,7 +65,7 @@ static int parse_hacks(const struct option *opt, const char *str, int unset)
        return found ? 0 : -1;
 }
 
-const struct option check_options[] = {
+static const struct option check_options[] = {
        OPT_GROUP("Actions:"),
        OPT_CALLBACK_OPTARG('h', "hacks", NULL, NULL, "jump_label,noinstr,skylake", "patch toolchain bugs/limitations", parse_hacks),
        OPT_BOOLEAN('i', "ibt", &opts.ibt, "validate and annotate IBT"),
index fa45044e38630c5608e2690c3e59ac7fbe5e9135..2a108e648b7a67b3d249f841578bde6da9113836 100644 (file)
@@ -7,8 +7,6 @@
 
 #include <subcmd/parse-options.h>
 
-extern const struct option check_options[];
-
 struct opts {
        /* actions: */
        bool dump_orc;