Merge patch series "tools: fdtgrep: Mark util_version() as static"

This series from Ilias Apalodimas <ilias.apalodimas@linaro.org> lays
some of the groundwork for being able to enable the -Wmissing-prototypes
compiler flag while building U-Boot by fixing the obvious problems in
the tools directory.

Link: https://lore.kernel.org/r/20250829081628.2327372-1-ilias.apalodimas@linaro.org
This commit is contained in:
Tom Rini
2025-09-09 12:44:23 -06:00
5 changed files with 7 additions and 7 deletions

View 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[])
{
@@ -1109,7 +1109,7 @@ void util_usage(const char *errmsg, const char *synopsis,
util_usage(errmsg, usage_synopsis, usage_short_opts, \
usage_long_opts, usage_opts_help)
void util_version(void)
static void util_version(void)
{
printf("Version: %s\n", "(U-Boot)");
exit(0);

View File

@@ -23,7 +23,7 @@
#include <image.h>
#include <u-boot/crc.h>
void usage(char *cmdname)
static void usage(char *cmdname)
{
fprintf(stderr, "Usage: %s -f fit file -k key file -c config name\n"
" -f ==> set fit file which should be checked'\n"

View File

@@ -49,7 +49,7 @@ static uint32_t get_cfg_value(char *token, char *name, int linenr)
return value;
}
int imx8mimage_check_params(struct image_tool_params *params)
static int imx8mimage_check_params(struct image_tool_params *params)
{
return 0;
}
@@ -475,7 +475,7 @@ static int generate_fspi_header (int ifd)
}
#endif
void build_image(int ofd)
static void build_image(int ofd)
{
int file_off, header_hdmi_off = 0, header_image_off;

View File

@@ -445,7 +445,7 @@ static void verify_image(const struct image_type_params *tparams)
(void)close(ifd);
}
void copy_datafile(int ifd, char *file)
static void copy_datafile(int ifd, char *file)
{
if (!file)
return;

View File

@@ -279,7 +279,7 @@ bool rkcommon_need_rc4_spl(struct image_tool_params *params)
return info->spl_rc4;
}
bool rkcommon_is_header_v2(struct image_tool_params *params)
static bool rkcommon_is_header_v2(struct image_tool_params *params)
{
struct spl_info *info = rkcommon_get_spl_info(params->imagename);