]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
tools: fdtgrep: Mark util_usage() as static
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Fri, 29 Aug 2025 08:16:16 +0000 (11:16 +0300)
committerTom Rini <trini@konsulko.com>
Tue, 9 Sep 2025 18:44:07 +0000 (12:44 -0600)
The function is only used locally. Enabling -Wmissing-prototypes
triggers a warning. Mark it as static.

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
tools/fdtgrep.c

index 6372defedc2ecb28a2a380da847f4111fd6a6280..b4c041070f560a8ca96120bd66640aec297f2fbb 100644 (file)
@@ -1040,7 +1040,7 @@ static const char * const usage_opts_help[] = {
 #define util_getopt_long() getopt_long(argc, argv, usage_short_opts, \
                                       usage_long_opts, NULL)
 
-void util_usage(const char *errmsg, const char *synopsis,
+static void util_usage(const char *errmsg, const char *synopsis,
                const char *short_opts, struct option const long_opts[],
                const char * const opts_help[])
 {