]> git.baikalelectronics.ru Git - kernel.git/commit
swiotlb: use depends on for DMA_RESTRICTED_POOL
authorClaire Chang <tientzu@chromium.org>
Fri, 27 Aug 2021 03:48:02 +0000 (11:48 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 31 Aug 2021 18:48:14 +0000 (14:48 -0400)
commitc2bfac1a4c310ca3ef60eff3185cc704b2dc400e
treef3992e02d04863e90e4fa67819f1f0a44bf6d2dc
parentec3200100b26631dc28b861ad6341d6befafda2a
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: 4920c9b59b48 ("swiotlb: Add restricted DMA pool initialization")
Acked-by: Will Deacon <will@kernel.org>
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Claire Chang <tientzu@chromium.org>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
kernel/dma/Kconfig