diff options
author | Tvrtko Ursulin <tursulin@ursulin.net> | 2024-03-28 17:53:23 +0300 |
---|---|---|
committer | Maíra Canal <mcanal@igalia.com> | 2024-04-15 19:56:32 +0300 |
commit | bfc7bc539392f681194de341dd2bb9e83f31f588 (patch) | |
tree | 669758830d6a03d9b70c5d3348ee5e8528a1fbed /drivers/dma-buf/selftests.h | |
parent | d894ea562f7ac908bf848bf15e1cfab503da71a9 (diff) | |
download | linux-bfc7bc539392f681194de341dd2bb9e83f31f588.tar.xz |
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: Tvrtko 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: T.J. Mercier <tjmercier@google.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240328145323.68872-1-tursulin@igalia.com
Diffstat (limited to 'drivers/dma-buf/selftests.h')
0 files changed, 0 insertions, 0 deletions