Commit b06175e3 authored by Tvrtko Ursulin's avatar Tvrtko Ursulin Committed by Kalesh Singh
Browse files

BACKPORT: dma-buf: Do not build debugfs related code when !CONFIG_DEBUG_FS



There is no point in compiling in the list and mutex operations which are
only used from the dma-buf debugfs code, if debugfs is not compiled in.

Put the code in questions behind some kconfig guards and so save some text
and maybe even a pointer per object at runtime when not enabled.

Signed-off-by: default avatarTvrtko Ursulin <tursulin@ursulin.net>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Christian König <christian.koenig@amd.com>
Cc: linux-media@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Cc: linaro-mm-sig@lists.linaro.org
Cc: linux-kernel@vger.kernel.org
Cc: kernel-dev@igalia.com
Reviewed-by: default avatarT.J. Mercier <tjmercier@google.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarMaíra Canal <mcanal@igalia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240328145323.68872-1-tursulin@igalia.com


(cherry picked from commit bfc7bc53)
[TJ: dma_buf_get_each must respect CONFIG_DEBUG_FS for the list and mutex]
Change-Id: I2c671494dd6ba8a05f15b661d1e9071a2ecc8a8c
Bug: 421890159
Signed-off-by: default avatarT.J. Mercier <tjmercier@google.com>
parent 188842d0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment