arch/risc-v: Update opensbi to 4998a712b2ab504eff306110879ee05af6050177

include theis commit:
commit 6ad8917b7e27e5e80fb9268492b9111b17ed2024
Author: Petro Karashchenko <petro.karashchenko@gmail.com>
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 <petro.karashchenko@gmail.com>
    Reviewed-by: Anup Patel <anup@brainfault.org>

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 <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-03-08 22:22:31 +08:00 committed by Petro Karashchenko
parent 3c5e1a865a
commit c0f3ac97bc

View File

@ -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"