]> git.baikalelectronics.ru Git - uboot.git/commit
riscv: fix building with CONFIG_SPL_SMP=n
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 15 Aug 2020 07:49:26 +0000 (09:49 +0200)
committerAndes <uboot@andestech.com>
Tue, 25 Aug 2020 01:33:45 +0000 (09:33 +0800)
commitba1859c4f265458c7f3f6a308a7a50b6f939d128
treea1b36d351bae0445b3761403b7ac2aa9d02fb659
parent2d8bb4db4192f7012775d8bb83debfac4e6a2109
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: 48f6f36b1fa0 ("riscv: Introduce SPL_SMP Kconfig option for U-Boot SPL")
Fixes: d462eb11c7ca ("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>
arch/riscv/lib/spl.c