On Mon, 8 Nov 2021 at 11:05, Andy Shevchenko <[email protected]> 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 <[email protected]> > --- > 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 <[email protected]>

