Skip to content

Commit 87fd9ef

Browse files
geertusumitsemwal
authored andcommitted
dma-buf: DMABUF_SYSFS_STATS should depend on DMA_SHARED_BUFFER
DMA-BUF sysfs statistics are an option of DMA-BUF. It does not make much sense to bother the user with a question about DMA-BUF sysfs statistics if DMA-BUF itself is not enabled. Worse, enabling the statistics enables the feature. Fixes: bdb8d06 ("dmabuf: Add the capability to expose DMA-BUF stats in sysfs") Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Sumit Semwal <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent cca6275 commit 87fd9ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma-buf/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ menuconfig DMABUF_HEAPS
7676

7777
menuconfig DMABUF_SYSFS_STATS
7878
bool "DMA-BUF sysfs statistics"
79-
select DMA_SHARED_BUFFER
79+
depends on DMA_SHARED_BUFFER
8080
help
8181
Choose this option to enable DMA-BUF sysfs statistics
8282
in location /sys/kernel/dmabuf/buffers.

0 commit comments

Comments
 (0)