>-----Original Message----- >From: U-Boot <u-boot-boun...@lists.denx.de> On Behalf Of Heinrich Schuchardt >Sent: 15 August 2020 13:19 >To: Rick Chen <r...@andestech.com> >Cc: Simon Glass <s...@chromium.org>; Bin Meng <bin.m...@windriver.com>; >Anup Patel <anup.pa...@wdc.com>; Lukas Auer ><lukas.a...@aisec.fraunhofer.de>; u-boot@lists.denx.de; Heinrich Schuchardt ><xypron.g...@gmx.de> >Subject: [PATCH v2 1/1] riscv: fix building with CONFIG_SPL_SMP=n > >[External Email] Do not click links or attachments unless you recognize the >sender and know the content is safe > >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> >Reviewed-by: Bin Meng <bin.m...@windriver.com> >Reviewed-by: Simon Glass <s...@chromium.org> >Reviewed-by: Rick Chen <r...@andestech.com> >--- >v2: > Do not break Fixes line >--- > arch/riscv/lib/spl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Pragnesh Patel <pragnesh.pa...@openfive.com>