Skip to content

Commit 7fa865f

Browse files
rddunlappalmer-dabbelt
authored andcommitted
riscv: TRANSPARENT_HUGEPAGE: depends on MMU
Fix a Kconfig warning and many build errors: WARNING: unmet direct dependencies detected for COMPACTION Depends on [n]: MMU [=n] Selected by [y]: - TRANSPARENT_HUGEPAGE [=y] && HAVE_ARCH_TRANSPARENT_HUGEPAGE [=y] and the subseqent thousands of build errors and warnings. Fixes: e88b333 ("riscv: mm: add THP support on 64-bit") Signed-off-by: Randy Dunlap <[email protected]> Acked-by: Mike Rapoport <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 0106235 commit 7fa865f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ config RISCV
105105
select SYSCTL_EXCEPTION_TRACE
106106
select THREAD_INFO_IN_TASK
107107
select UACCESS_MEMCPY if !MMU
108-
select HAVE_ARCH_TRANSPARENT_HUGEPAGE if 64BIT
108+
select HAVE_ARCH_TRANSPARENT_HUGEPAGE if 64BIT && MMU
109109

110110
config ARCH_MMAP_RND_BITS_MIN
111111
default 18 if 64BIT

0 commit comments

Comments
 (0)