Эх сурвалжийг харах

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 <[email protected]>
Signed-off-by: Dharmender Sharma <[email protected]>
Change-Id: I556992cb4fd4cbedb820dae5b976f3a77dd6022e
Dharmender Sharma 1 жил өмнө
parent
commit
d37bbdafbf

+ 2 - 2
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;