Skip to content

Commit f3c4b13

Browse files
Claire Changkonradwilk
authored andcommitted
swiotlb: use depends on for DMA_RESTRICTED_POOL
Use depends on instead of select for DMA_RESTRICTED_POOL; otherwise it will make SWIOTLB user configurable and cause compile errors for some arch (e.g. mips). Fixes: 0b84e4f ("swiotlb: Add restricted DMA pool initialization") Acked-by: Will Deacon <[email protected]> Reported-by: Guenter Roeck <[email protected]> Signed-off-by: Claire Chang <[email protected]> Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
1 parent f3cfd13 commit f3c4b13

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

kernel/dma/Kconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ config SWIOTLB
8282

8383
config DMA_RESTRICTED_POOL
8484
bool "DMA Restricted Pool"
85-
depends on OF && OF_RESERVED_MEM
86-
select SWIOTLB
85+
depends on OF && OF_RESERVED_MEM && SWIOTLB
8786
help
8887
This enables support for restricted DMA pools which provide a level of
8988
DMA memory protection on systems with limited hardware protection

0 commit comments

Comments
 (0)