From d37bbdafbfc4f682ea5aecab83705ae2b89469b3 Mon Sep 17 00:00:00 2001 From: Dharmender Sharma Date: Wed, 31 Jan 2024 12:55:02 +0530 Subject: [PATCH] msm: camera: common: dma-buf: support users to change dma_buf name This change add name to dma_buf, it's difficult to debug kernel dma_buf users as until now as we could not set it at kernel side. dma_buf_set_name function is exported by Android kernel. So in future if it is exported for any kernel version then based on that we need to support. CRs-Fixed: 3728228 Signed-off-by: Soumen Ghosh Signed-off-by: Dharmender Sharma Change-Id: I556992cb4fd4cbedb820dae5b976f3a77dd6022e --- drivers/cam_utils/cam_compat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/cam_utils/cam_compat.c b/drivers/cam_utils/cam_compat.c index b0a97029c6..6c0fa01d79 100644 --- a/drivers/cam_utils/cam_compat.c +++ b/drivers/cam_utils/cam_compat.c @@ -676,8 +676,8 @@ int cam_i3c_driver_remove(struct i3c_device *client) } #endif -#if (KERNEL_VERSION(5, 15, 0) <= LINUX_VERSION_CODE && \ - KERNEL_VERSION(5, 18, 0) > LINUX_VERSION_CODE) +#if (KERNEL_VERSION(5, 10, 0) <= LINUX_VERSION_CODE && \ + KERNEL_VERSION(6, 6, 0) > LINUX_VERSION_CODE) long cam_dma_buf_set_name(struct dma_buf *dmabuf, const char *name) { long ret = 0;