spl: Add prototype to function spl_board_boot_device()
authorAlifer Moraes <alifer.wsdm@gmail.com>
Tue, 14 Jan 2020 18:55:01 +0000 (15:55 -0300)
committerStefano Babic <sbabic@denx.de>
Mon, 20 Jan 2020 14:38:16 +0000 (15:38 +0100)
Add prototype to function spl_board_boot_device to fix the following
sparse warning:

board/freescale/imx8mm_evk/spl.c:26:5: warning: no previous prototype
for ‘spl_board_boot_device’ [-Wmissing-prototypes]

Signed-off-by: Alifer Moraes <alifer.wsdm@gmail.com>
include/spl.h

index cd4669f5aa77463cd5d8f2081258b4e2590cc6f9..6087cd793c26154909bf6c66348c902aa0e264ce 100644 (file)
@@ -269,6 +269,7 @@ int spl_parse_image_header(struct spl_image_info *spl_image,
 void spl_board_prepare_for_linux(void);
 void spl_board_prepare_for_boot(void);
 int spl_board_ubi_load_image(u32 boot_device);
+int spl_board_boot_device(u32 boot_device);
 
 /**
  * jump_to_image_linux() - Jump to a Linux kernel from SPL