aboutsummaryrefslogtreecommitdiff
path: root/boot
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 /boot
parentb5f3850727c86811767c10218b68552e63ff2a6a (diff)
downloadu-boot-4b32531be236bbd9ca60f26447511f79e214f79e.zip
u-boot-4b32531be236bbd9ca60f26447511f79e214f79e.tar.gz
u-boot-4b32531be236bbd9ca60f26447511f79e214f79e.tar.bz2
image: Explicitly declare do_bdinfo()WIP/2021-11-15-assorted-fixes
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 'boot')
-rw-r--r--boot/image-board.c1
-rw-r--r--boot/image.c6
2 files changed, 2 insertions, 5 deletions
diff --git a/boot/image-board.c b/boot/image-board.c
index ddf30c6..bf88171 100644
--- a/boot/image-board.c
+++ b/boot/image-board.c
@@ -14,6 +14,7 @@
#include <env.h>
#include <fpga.h>
#include <image.h>
+#include <init.h>
#include <mapmem.h>
#include <rtc.h>
#include <watchdog.h>
diff --git a/boot/image.c b/boot/image.c
index 992e729..f792f2a 100644
--- a/boot/image.c
+++ b/boot/image.c
@@ -9,6 +9,7 @@
#ifndef USE_HOSTCC
#include <common.h>
#include <env.h>
+#include <init.h>
#include <lmb.h>
#include <log.h>
#include <malloc.h>
@@ -29,11 +30,6 @@
#include <linux/errno.h>
#include <asm/io.h>
-#ifdef CONFIG_CMD_BDI
-extern int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc,
- char *const argv[]);
-#endif
-
DECLARE_GLOBAL_DATA_PTR;
/* Set this if we have less than 4 MB of malloc() space */