u-boot/board/sifive/unmatched
Bin Meng a0cfe13715 board: sifive: Fix a potential build warning in board_fdt_blob_setup()
Commit 47d73ba4f4 ("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
..
hifive-platform-i2c-eeprom.c global: Convert simple_strtoul() with decimal to dectoul() 2021-08-02 13:32:14 -04:00
Kconfig riscv: sifive: fu740: kconfig: Enable support for Opencores I2C controller 2021-07-06 20:24:25 +08:00
MAINTAINERS board: sifive: add HiFive Unmatched board support 2021-05-31 16:35:55 +08:00
Makefile board: sifive: compile stuff only related to SPL in SPL build 2021-08-17 19:28:37 +08:00
spl.c board: sifive: unmatched: reset USB hub, PCIe-USB bridge, and ULPI device in SPL 2021-07-21 22:25:15 +08:00
unmatched.c board: sifive: Fix a potential build warning in board_fdt_blob_setup() 2021-10-20 10:59:00 +08:00