drm: Remove initialization of fd/handle conversion for Linux 6.6

The functions for fd/handle conversion are unexported as it is
used internally to drm_prime based on following change:
---
Author: Thomas Zimmermann <tzimmermann@suse.de>
Date:   Tue Jun 20 09:59:59 2023 +0200

    drm/prime: Unexport helpers for fd/handle conversion
---

Remove the initialisation of these functions pointer.

Bug 4346767

Change-Id: I821f4e63663a7f35e5fa39ed84383765ed8599fa
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3008091
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Laxman Dewangan
2023-11-01 07:19:40 +00:00
committed by mobile promotions
parent f60f770721
commit abfab2085e
2 changed files with 5 additions and 0 deletions

View File

@@ -52,6 +52,9 @@ subdir-ccflags-y += -DNV_DROP_PCIE_ERROR_REPORTING
# Split types and declaration of net/page_pool.h
subdir-ccflags-y += -DNV_SPLIT_PAGE_POOL_HEADER
# Unexport helpers for fd/handle conversion
subdir-ccflags-y += -DNV_UNEXPORT_FD_HANDLE_CONVERSION
endif
ifeq ($(CONFIG_TEGRA_VIRTUALIZATION),y)

View File

@@ -891,8 +891,10 @@ static const struct drm_driver tegra_drm_driver = {
.debugfs_init = tegra_debugfs_init,
#endif
#if !defined(NV_UNEXPORT_FD_HANDLE_CONVERSION)
.prime_handle_to_fd = drm_gem_prime_handle_to_fd,
.prime_fd_to_handle = drm_gem_prime_fd_to_handle,
#endif
.gem_prime_import = tegra_gem_prime_import,
.dumb_create = tegra_bo_dumb_create,