command.h: Remove extern from the header
Remove the extern of the header because they are useless. Signed-off-by: Kory Maincent <kory.maincent@bootlin.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> [bmeng: minor edit on the commit message] Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
@@ -55,8 +55,8 @@ struct cmd_tbl {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#if defined(CONFIG_CMD_RUN)
|
#if defined(CONFIG_CMD_RUN)
|
||||||
extern int do_run(struct cmd_tbl *cmdtp, int flag, int argc,
|
int do_run(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||||
char *const argv[]);
|
char *const argv[]);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* common/command.c */
|
/* common/command.c */
|
||||||
@@ -69,7 +69,7 @@ int complete_subcmdv(struct cmd_tbl *cmdtp, int count, int argc,
|
|||||||
char *const argv[], char last_char, int maxv,
|
char *const argv[], char last_char, int maxv,
|
||||||
char *cmdv[]);
|
char *cmdv[]);
|
||||||
|
|
||||||
extern int cmd_usage(const struct cmd_tbl *cmdtp);
|
int cmd_usage(const struct cmd_tbl *cmdtp);
|
||||||
|
|
||||||
/* Dummy ->cmd and ->cmd_rep wrappers. */
|
/* Dummy ->cmd and ->cmd_rep wrappers. */
|
||||||
int cmd_always_repeatable(struct cmd_tbl *cmdtp, int flag, int argc,
|
int cmd_always_repeatable(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||||
@@ -85,10 +85,10 @@ static inline bool cmd_is_repeatable(struct cmd_tbl *cmdtp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_AUTO_COMPLETE
|
#ifdef CONFIG_AUTO_COMPLETE
|
||||||
extern int var_complete(int argc, char *const argv[], char last_char, int maxv,
|
int var_complete(int argc, char *const argv[], char last_char, int maxv,
|
||||||
char *cmdv[]);
|
char *cmdv[]);
|
||||||
extern int cmd_auto_complete(const char *const prompt, char *buf, int *np,
|
int cmd_auto_complete(const char *const prompt, char *buf, int *np,
|
||||||
int *colp);
|
int *colp);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -145,13 +145,13 @@ int cmd_get_data_size(char *arg, int default_size);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_CMD_BOOTD
|
#ifdef CONFIG_CMD_BOOTD
|
||||||
extern int do_bootd(struct cmd_tbl *cmdtp, int flag, int argc,
|
int do_bootd(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||||
char *const argv[]);
|
char *const argv[]);
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_CMD_BOOTM
|
#ifdef CONFIG_CMD_BOOTM
|
||||||
extern int do_bootm(struct cmd_tbl *cmdtp, int flag, int argc,
|
int do_bootm(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||||
char *const argv[]);
|
char *const argv[]);
|
||||||
extern int bootm_maybe_autostart(struct cmd_tbl *cmdtp, const char *cmd);
|
int bootm_maybe_autostart(struct cmd_tbl *cmdtp, const char *cmd);
|
||||||
#else
|
#else
|
||||||
static inline int bootm_maybe_autostart(struct cmd_tbl *cmdtp, const char *cmd)
|
static inline int bootm_maybe_autostart(struct cmd_tbl *cmdtp, const char *cmd)
|
||||||
{
|
{
|
||||||
@@ -159,28 +159,28 @@ static inline int bootm_maybe_autostart(struct cmd_tbl *cmdtp, const char *cmd)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern int do_bootz(struct cmd_tbl *cmdtp, int flag, int argc,
|
int do_bootz(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||||
|
char *const argv[]);
|
||||||
|
|
||||||
|
int do_booti(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||||
|
char *const argv[]);
|
||||||
|
|
||||||
|
int common_diskboot(struct cmd_tbl *cmdtp, const char *intf, int argc,
|
||||||
char *const argv[]);
|
char *const argv[]);
|
||||||
|
|
||||||
extern int do_booti(struct cmd_tbl *cmdtp, int flag, int argc,
|
int do_reset(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||||
char *const argv[]);
|
char *const argv[]);
|
||||||
|
int do_poweroff(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||||
|
char *const argv[]);
|
||||||
|
|
||||||
extern int common_diskboot(struct cmd_tbl *cmdtp, const char *intf, int argc,
|
unsigned long do_go_exec(ulong (*entry)(int, char * const []), int argc,
|
||||||
char *const argv[]);
|
char *const argv[]);
|
||||||
|
|
||||||
extern int do_reset(struct cmd_tbl *cmdtp, int flag, int argc,
|
|
||||||
char *const argv[]);
|
|
||||||
extern int do_poweroff(struct cmd_tbl *cmdtp, int flag, int argc,
|
|
||||||
char *const argv[]);
|
|
||||||
|
|
||||||
extern unsigned long do_go_exec(ulong (*entry)(int, char * const []), int argc,
|
|
||||||
char *const argv[]);
|
|
||||||
|
|
||||||
#if defined(CONFIG_CMD_NVEDIT_EFI)
|
#if defined(CONFIG_CMD_NVEDIT_EFI)
|
||||||
extern int do_env_print_efi(struct cmd_tbl *cmdtp, int flag, int argc,
|
int do_env_print_efi(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||||
char *const argv[]);
|
char *const argv[]);
|
||||||
extern int do_env_set_efi(struct cmd_tbl *cmdtp, int flag, int argc,
|
int do_env_set_efi(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||||
char *const argv[]);
|
char *const argv[]);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user