Skip to contentSkip to conversation

riscv: select DMA_DIRECT_OPS instead of redefining it

PATCH New Christoph Hellwig 2 participants 2 messages Apr 16, 2018 – Apr 20, 2018 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 riscv: select DMA_DIRECT_OPS instead of redefining it

DMA_DIRECT_OPS is defined in lib/Kconfig, so don't duplicate it in arch/riscv/Kconfig.

---
 arch/riscv/Kconfig | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
arch/riscv/Kconfig +1 -3
index 23d8acca5c90..cd4fd85fde84 100644
@@ -11,6 +11,7 @@ config RISCV
 	select ARCH_WANT_FRAME_POINTERS
 	select CLONE_BACKWARDS
 	select COMMON_CLK
+	select DMA_DIRECT_OPS
 	select GENERIC_CLOCKEVENTS
 	select GENERIC_CPU_DEVICES
 	select GENERIC_IRQ_SHOW
@@ -89,9 +90,6 @@ config PGTABLE_LEVELS
 config HAVE_KPROBES
 	def_bool n
 
-config DMA_DIRECT_OPS
-	def_bool y
-
 menu "Platform type"
 
 choice
Signature · 1 line
2.17.0
#1 lore raw

PATCH 1/1 riscv: select DMA_DIRECT_OPS instead of redefining it

Quoted 21 lines · Christoph Hellwig

DMA_DIRECT_OPS is defined in lib/Kconfig, so don't duplicate it in arch/riscv/Kconfig.

---
 arch/riscv/Kconfig | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
arch/riscv/Kconfig +1 -0
index 23d8acca5c90..cd4fd85fde84 100644
@@ -11,6 +11,7 @@ config RISCV
 	select ARCH_WANT_FRAME_POINTERS
 	select CLONE_BACKWARDS
 	select COMMON_CLK
+	select DMA_DIRECT_OPS
 	select GENERIC_CLOCKEVENTS
 	select GENERIC_CPU_DEVICES
 	select GENERIC_IRQ_SHOW

arch/riscv/Kconfig config PGTABLE_LEVELS · line 95

Quoted 9 lines
arch/riscv/Kconfig +0 -3
@@ -89,9 +90,6 @@ config PGTABLE_LEVELS
 config HAVE_KPROBES
 	def_bool n
 
-config DMA_DIRECT_OPS
-	def_bool y
-
 menu "Platform type"
 
 choice

Thanks!