Skip to content

Commit 2a2018c

Browse files
mmindpalmer-dabbelt
authored andcommitted
riscv: make t-head erratas depend on MMU
Both basic extensions of SVPBMT and ZICBOM depend on CONFIG_MMU. Make the T-Head errata implementations of the similar functionality also depend on it to prevent build errors. Fixes: a35707c ("riscv: add memory-type errata for T-Head") Fixes: d20ec75 ("riscv: implement cache-management errata for T-Head SoCs") Reported-by: kernel test robot <[email protected]> Signed-off-by: Heiko Stuebner <[email protected]> Reviewed-by: Guo Ren <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 225e47e commit 2a2018c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/riscv/Kconfig.erratas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ config ERRATA_THEAD
4646

4747
config ERRATA_THEAD_PBMT
4848
bool "Apply T-Head memory type errata"
49-
depends on ERRATA_THEAD && 64BIT
49+
depends on ERRATA_THEAD && 64BIT && MMU
5050
select RISCV_ALTERNATIVE_EARLY
5151
default y
5252
help
@@ -57,7 +57,7 @@ config ERRATA_THEAD_PBMT
5757

5858
config ERRATA_THEAD_CMO
5959
bool "Apply T-Head cache management errata"
60-
depends on ERRATA_THEAD
60+
depends on ERRATA_THEAD && MMU
6161
select RISCV_DMA_NONCOHERENT
6262
default y
6363
help

0 commit comments

Comments
 (0)