]> Git Repo - J-linux.git/commitdiff
dma-buf: DMABUF_SYSFS_STATS should depend on DMA_SHARED_BUFFER
authorGeert Uytterhoeven <[email protected]>
Thu, 2 Sep 2021 12:49:13 +0000 (14:49 +0200)
committerSumit Semwal <[email protected]>
Tue, 7 Sep 2021 07:12:21 +0000 (12:42 +0530)
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: bdb8d06dfefd666d ("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]
drivers/dma-buf/Kconfig

index d53782f4f51b54f71d534fef28b6ef3af1e747b9..541efe01abc7c4323d9ac20283681c282556f432 100644 (file)
@@ -76,7 +76,7 @@ menuconfig DMABUF_HEAPS
 
 menuconfig DMABUF_SYSFS_STATS
        bool "DMA-BUF sysfs statistics"
-       select DMA_SHARED_BUFFER
+       depends on DMA_SHARED_BUFFER
        help
           Choose this option to enable DMA-BUF sysfs statistics
           in location /sys/kernel/dmabuf/buffers.
This page took 0.049703 seconds and 4 git commands to generate.