summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-11-08 21:03:38 +0300
committerTom Rini <trini@konsulko.com>2021-11-15 14:33:33 -0500
commit4b32531be236bbd9ca60f26447511f79e214f79e (patch)
tree1e69012365e0e0c7c45a438104d88cca1b9256b5 /include
parentb5f3850727c86811767c10218b68552e63ff2a6a (diff)
image: Explicitly declare do_bdinfo()
Compiler is not happy: common/image-board.c: In function ‘boot_get_kbd’: common/image-board.c:902:17: warning: implicit declaration of function ‘do_bdinfo’ [-Wimplicit-function-declaration] 902 | do_bdinfo(NULL, 0, 0, NULL); | ^~~~~~~~~ Move the forward declaration to a header. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/init.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/init.h b/include/init.h
index c781789e36..f2cd46dead 100644
--- a/include/init.h
+++ b/include/init.h
@@ -332,6 +332,8 @@ void bdinfo_print_mhz(const char *name, unsigned long hz);
/* Show arch-specific information for the 'bd' command */
void arch_print_bdinfo(void);
+int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
+
#endif /* __ASSEMBLY__ */
/* Put only stuff here that the assembler can digest */