summaryrefslogtreecommitdiffstats
path: root/tools/objtool/builtin-orc.c
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2021-02-26 11:18:24 +0100
committerIngo Molnar <mingo@kernel.org>2021-03-06 12:44:23 +0100
commita2f605f9ff57397d05a8e2f282b78a69f574d305 (patch)
treeb0e60f3e57bb8f38db6034fb6281a65c2bd59988 /tools/objtool/builtin-orc.c
parent8ad15c6900840e8a2163012f4581c52127622e02 (diff)
downloadlinux-a2f605f9ff57397d05a8e2f282b78a69f574d305.tar.gz
linux-a2f605f9ff57397d05a8e2f282b78a69f574d305.tar.bz2
linux-a2f605f9ff57397d05a8e2f282b78a69f574d305.zip
objtool: Collate parse_options() users
Ensure there's a single place that parses check_options, in preparation for extending where to get options from. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Acked-by: Josh Poimboeuf <jpoimboe@redhat.com> Link: https://lkml.kernel.org/r/20210226110004.193108106@infradead.org
Diffstat (limited to 'tools/objtool/builtin-orc.c')
-rw-r--r--tools/objtool/builtin-orc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/objtool/builtin-orc.c b/tools/objtool/builtin-orc.c
index 8273bbf7cebb..17f8b9307738 100644
--- a/tools/objtool/builtin-orc.c
+++ b/tools/objtool/builtin-orc.c
@@ -34,10 +34,7 @@ int cmd_orc(int argc, const char **argv)
struct objtool_file *file;
int ret;
- argc = parse_options(argc, argv, check_options, orc_usage, 0);
- if (argc != 1)
- usage_with_options(orc_usage, check_options);
-
+ argc = cmd_parse_options(argc, argv, orc_usage);
objname = argv[0];
file = objtool_open_read(objname);