Commit 7935fe7b authored by Tvrtko Ursulin's avatar Tvrtko Ursulin Committed by T.J. Mercier
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: List and mutex already not guarded by CONFIG_DEBUG_FS due to
previous cherrypicks, but we need the name changes from this patch.]
Change-Id: I2c671494dd6ba8a05f15b661d1e9071a2ecc8a8c
Bug: 421890159
Bug: 449985230
Signed-off-by: default avatarT.J. Mercier <tjmercier@google.com>
parent 2400b874
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment