Bin Meng a0cfe13715 board: sifive: Fix a potential build warning in board_fdt_blob_setup()
Commit 47d73ba4f4a4 ("board: sifive: overwrite board_fdt_blob_setup in u-boot proper")
added a board-specific implementation of board_fdt_blob_setup() which
takes a pointer as the return value, but it does not return anything
if CONFIG_OF_SEPARATE is not enabled. This will cause a build warning
seen when testing booting S-mode U-Boot directly from QEMU, per the
instructions in [1]:

  board/sifive/unleashed/unleashed.c: In function ‘board_fdt_blob_setup’:
  board/sifive/unleashed/unleashed.c:125:1: warning: control reaches end of non-void function [-Wreturn-type]

Return &_end as the default case.

[1] https://qemu.readthedocs.io/en/latest/system/riscv/sifive_u.html#running-u-boot

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Reviewed-by: Rick Chen <rick@andestech.com>
2021-10-20 10:59:00 +08:00
..
2021-09-04 12:26:02 -04:00
2021-09-07 16:22:30 -04:00
2021-09-04 11:42:41 -04:00
2021-09-07 16:22:30 -04:00
2021-09-04 12:26:02 -04:00
2021-09-07 16:22:30 -04:00
2021-09-27 09:45:36 -04:00
2021-09-07 16:22:30 -04:00
2021-06-17 09:40:58 +08:00
2021-09-13 18:23:13 -04:00
2021-09-16 10:29:40 -04:00
2021-09-30 11:29:41 -04:00