On Mon, 3 Aug 2020 at 15:26, Heinrich Schuchardt <xypron.g...@gmx.de> wrote: > > 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: 191636e44898 ("riscv: Introduce SPL_SMP Kconfig option for U-Boot > SPL") > Fixes: 8c59f2023cc8 ("riscv: add SPL support") > Signed-off-by: Heinrich Schuchardt <xypron.g...@gmx.de> > --- > arch/riscv/lib/spl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass <s...@chromium.org>