u-boot-brain/arch/riscv
Heinrich Schuchardt 092f15aee5 riscv: fix building with CONFIG_SPL_SMP=n
Building with CONFIG_SPL_SMP=n results in:

arch/riscv/lib/spl.c: In function ‘jump_to_image_no_args’:
arch/riscv/lib/spl.c:33:6:
error: unused variable ‘ret’ [-Werror=unused-variable]
   33 |  int ret;
      |      ^~~

Define the variable ret as __maybe_unused.

Fixes: 191636e448 ("riscv: Introduce SPL_SMP Kconfig option for U-Boot SPL")
Fixes: 8c59f2023c ("riscv: add SPL support")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Rick Chen <rick@andestech.com>
Reviewed-by: Pragnesh Patel <pragnesh.patel@openfive.com>
2020-08-25 09:33:45 +08:00
..
cpu riscv: fu540: Use correct API to get L2 cache controller base address 2020-08-25 09:33:16 +08:00
dts fu540: dtsi: add reset producer and consumer entries 2020-08-04 09:19:41 +08:00
include/asm riscv: sifive/fu540: spl: Rename soc_spl_init() 2020-08-14 14:38:53 +08:00
lib riscv: fix building with CONFIG_SPL_SMP=n 2020-08-25 09:33:45 +08:00
config.mk kconfig / kbuild: Re-sync with Linux 4.19 2020-04-10 11:18:32 -04:00
Kconfig Merge branch 'next' 2020-07-06 15:46:38 -04:00
Makefile riscv: add Kconfig entries for the code model 2018-12-18 09:56:26 +08:00