Skip to contentSkip to conversation

RISC-V: fix Andes errata build issues

PATCH Superseded Conor Dooley 1 participant 2 messages May 15, 2024 RISC-V

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RISC-V: fix Andes errata build issues

From: Conor Dooley <[email protected]>

Commit Fixes: 589e2fc85850 ("riscv: Convert xandespmu to use the vendor extension framework") added includes for the new vendor_extensions.h header in the T-Head and SiFive errata handling code but didn't do so for Andes, resulting in allmodconfig build issues.

Fixes 589e2fc85850 ("riscv: Convert xandespmu to use the vendor extension framework")

---
CC: Paul Walmsley <[email protected]>
CC: Palmer Dabbelt <[email protected]>
CC: Conor Dooley <[email protected]>
CC: Charlie Jenkins <[email protected]>
CC: [email protected]
CC: [email protected]

---
 arch/riscv/errata/andes/errata.c | 1 +
 1 file changed, 1 insertion(+)
arch/riscv/errata/andes/errata.c +1 -0
index a5d96a7a4682..fc1a34faa5f3 100644
@@ -17,6 +17,7 @@
 #include <asm/processor.h>
 #include <asm/sbi.h>
 #include <asm/vendorid_list.h>
+#include <asm/vendor_extensions.h>
 
 #define ANDES_AX45MP_MARCHID		0x8000000000008a45UL
 #define ANDES_AX45MP_MIMPID		0x500UL
Signature · 1 line
2.43.0
#1 lore raw
Quoted 4 lines · Conor Dooley

From: Conor Dooley <[email protected]>

Commit Fixes: 589e2fc85850 ("riscv: Convert xandespmu to use the vendor extension framework") added includes for the new vendor_extensions.h

This commit message is actually inaccurate, I'll spin out an immediate v2..

Quoted 31 lines

header in the T-Head and SiFive errata handling code but didn't do so for Andes, resulting in allmodconfig build issues.

Fixes 589e2fc85850 ("riscv: Convert xandespmu to use the vendor extension framework")

---
CC: Paul Walmsley <[email protected]>
CC: Palmer Dabbelt <[email protected]>
CC: Conor Dooley <[email protected]>
CC: Charlie Jenkins <[email protected]>
CC: [email protected]
CC: [email protected]

---
 arch/riscv/errata/andes/errata.c | 1 +
 1 file changed, 1 insertion(+)
arch/riscv/errata/andes/errata.c +1 -0
index a5d96a7a4682..fc1a34faa5f3 100644
@@ -17,6 +17,7 @@
 #include <asm/processor.h>
 #include <asm/sbi.h>
 #include <asm/vendorid_list.h>
+#include <asm/vendor_extensions.h>
 
 #define ANDES_AX45MP_MARCHID		0x8000000000008a45UL
 #define ANDES_AX45MP_MIMPID		0x500UL
Signature · 1 line
2.43.0