diff options
author | Anup Patel <apatel@ventanamicro.com> | 2024-12-10 09:04:43 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2024-12-15 11:28:13 +0530 |
commit | 74c6ea014db8fc7d56254ba9dd371b7454bd7220 (patch) | |
tree | d201f1f2a8843dbfdece4cc6b1ef2a52a1e12aa4 /lib/sbi/sbi_init.c | |
parent | c2acc5e5b0d85166153032eaea181021c73e9752 (diff) | |
download | opensbi-74c6ea014db8fc7d56254ba9dd371b7454bd7220.zip opensbi-74c6ea014db8fc7d56254ba9dd371b7454bd7220.tar.gz opensbi-74c6ea014db8fc7d56254ba9dd371b7454bd7220.tar.bz2 |
lib: utils/fdt_cppc_rpmi: Fix compile error with LLVM
The following error is observed when compiling fdt_cppc_rpmi
driver using LLVM:
lib/utils/cppc/fdt_cppc_rpmi.c:87:3: error: label followed by a declaration is a C23 extension [-Werror,-Wc23-extensions]
87 | u64 db_val_u64 = 0;
To fix the above issue, move the variable declaration at the
start of function.
Fixes: 591a98bdd549 ("lib: utils/cppc: Add RPMI CPPC driver")
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
Diffstat (limited to 'lib/sbi/sbi_init.c')
0 files changed, 0 insertions, 0 deletions