From c0f3ac97bc6a4581adf23651ed2383fcc92077f3 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Tue, 8 Mar 2022 22:22:31 +0800 Subject: [PATCH] arch/risc-v: Update opensbi to 4998a712b2ab504eff306110879ee05af6050177 include theis commit: commit 6ad8917b7e27e5e80fb9268492b9111b17ed2024 Author: Petro Karashchenko Date: Fri Jan 28 09:13:23 2022 +0200 lib: fix compilation when strings.h is included In a systems that provide strings.h and it is included together with sbi_bitops.h the compilation error appears. The ffs() and fls() are provided by strings.h Signed-off-by: Petro Karashchenko Reviewed-by: Anup Patel and fix this warning: Error: include/sbi/sbi_bitops.h:47:19: declaration of 'ffs' shadows a built-in function static inline int ffs(int x) ^~~ Signed-off-by: Xiang Xiao --- arch/risc-v/src/opensbi/Make.defs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/risc-v/src/opensbi/Make.defs b/arch/risc-v/src/opensbi/Make.defs index 80c2070d9d0..27bd894b2f3 100644 --- a/arch/risc-v/src/opensbi/Make.defs +++ b/arch/risc-v/src/opensbi/Make.defs @@ -32,10 +32,10 @@ OPENSBI_ASRCS += opensbi/opensbi-3rdparty/lib/sbi/sbi_expected_trap.S OPENSBI_ASRCS += opensbi/opensbi-3rdparty/lib/sbi/sbi_hfence.S OPENSBI_UNPACK = opensbi-3rdparty -OPENSBI_COMMIT = 5d025eb2353550eadbd2fa9b8083a92fe9b07bd9 +OPENSBI_COMMIT = 4998a712b2ab504eff306110879ee05af6050177 OPENSBI_URL = https://github.com/riscv-software-src/opensbi/tarball OPENSBI_TARBALL = opensbi.tar.gz -OPENSBI_DIR = riscv-software-src-opensbi-5d025eb +OPENSBI_DIR = riscv-software-src-opensbi-4998a71 $(OPENSBI_TARBALL): $(Q) echo "Downloading: OpenSBI"