From: Christian König Date: Thu, 4 Dec 2025 14:56:03 +0000 (+0100) Subject: dma-buf: enable DMABUF_DEBUG by default on DEBUG kernels X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=646013f513f38a3e75a60fde31ae0e6154ce19a7;p=thirdparty%2Fkernel%2Flinux.git dma-buf: enable DMABUF_DEBUG by default on DEBUG kernels The overhead of enforcing the DMA-buf rules for importers is now so low that it safe to enable it by default on DEBUG kernels. This will hopefully result in fixing more issues in importers. Signed-off-by: Christian König Reviewed-by: Michael J. Ruhl Link: https://lore.kernel.org/r/20251205130604.1582-2-christian.koenig@amd.com --- diff --git a/drivers/dma-buf/Kconfig b/drivers/dma-buf/Kconfig index b46eb8a552d7..fdd823e446cc 100644 --- a/drivers/dma-buf/Kconfig +++ b/drivers/dma-buf/Kconfig @@ -55,7 +55,7 @@ config DMABUF_MOVE_NOTIFY config DMABUF_DEBUG bool "DMA-BUF debug checks" depends on DMA_SHARED_BUFFER - default y if DMA_API_DEBUG + default y if DEBUG help This option enables additional checks for DMA-BUF importers and exporters. Specifically it validates that importers do not peek at the