[PATCH v2 2/2] image: Explicitly declare do_bdinfo()
Simon Glass
sjg at chromium.org
Tue Nov 9 01:09:26 CET 2021
On Mon, 8 Nov 2021 at 11:05, Andy Shevchenko
<andriy.shevchenko at linux.intel.com> wrote:
>
> 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 at linux.intel.com>
> ---
> v2: dropped ifdeffery and extern (Simon), included header to the users
> common/image-board.c | 1 +
> common/image.c | 6 +-----
> include/init.h | 2 ++
> 3 files changed, 4 insertions(+), 5 deletions(-)
>
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list