aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/nvedit.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2024-10-21 16:56:33 +0300
committerTom Rini <trini@konsulko.com>2024-10-24 11:21:44 -0600
commite7dad2d37eb92a990eac9b16f51cfb777eb16af6 (patch)
tree526329e4c73e32b5260bdffedcf80f7af5de0ae2 /cmd/nvedit.c
parentdb7e81154ec0bbd62dbb44ac225d22729988078e (diff)
downloadu-boot-e7dad2d37eb92a990eac9b16f51cfb777eb16af6.tar.gz
cmd: nvedit: Mark a few functions static
Some functions are not used anywhere except the same file where they are defined. Mark them static. This helps avoiding the compiler warnings: cmd/nvedit.c:201:5: warning: no previous prototype for ‘do_env_ask’ [-Wmissing-prototypes] cmd/nvedit.c:315:5: warning: no previous prototype for ‘do_env_callback’ [-Wmissing-prototypes] cmd/nvedit.c:384:5: warning: no previous prototype for ‘do_env_flags’ [-Wmissing-prototype ] Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/nvedit.c')
-rw-r--r--cmd/nvedit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/nvedit.c b/cmd/nvedit.c
index 74ff5c6fc11..392f90f8698 100644
--- a/cmd/nvedit.c
+++ b/cmd/nvedit.c
@@ -198,7 +198,7 @@ static int do_env_set(struct cmd_tbl *cmdtp, int flag, int argc,
* Prompt for environment variable
*/
#if defined(CONFIG_CMD_ASKENV)
-int do_env_ask(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
+static int do_env_ask(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
{
char message[CONFIG_SYS_CBSIZE];
int i, len, pos, size;
@@ -312,8 +312,8 @@ static int print_active_callback(struct env_entry *entry)
/*
* Print the callbacks available and what they are bound to
*/
-int do_env_callback(struct cmd_tbl *cmdtp, int flag, int argc,
- char *const argv[])
+static int do_env_callback(struct cmd_tbl *cmdtp, int flag, int argc,
+ char *const argv[])
{
struct env_clbk_tbl *clbkp;
int i;
@@ -381,7 +381,7 @@ static int print_active_flags(struct env_entry *entry)
/*
* Print the flags available and what variables have flags
*/
-int do_env_flags(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
+static int do_env_flags(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
{
/* Print the available variable types */
printf("Available variable type flags (position %d):\n",