mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
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:
committed by
mobile promotions
parent
f60f770721
commit
abfab2085e
3
Makefile
3
Makefile
@@ -52,6 +52,9 @@ subdir-ccflags-y += -DNV_DROP_PCIE_ERROR_REPORTING
|
|||||||
|
|
||||||
# Split types and declaration of net/page_pool.h
|
# Split types and declaration of net/page_pool.h
|
||||||
subdir-ccflags-y += -DNV_SPLIT_PAGE_POOL_HEADER
|
subdir-ccflags-y += -DNV_SPLIT_PAGE_POOL_HEADER
|
||||||
|
|
||||||
|
# Unexport helpers for fd/handle conversion
|
||||||
|
subdir-ccflags-y += -DNV_UNEXPORT_FD_HANDLE_CONVERSION
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_TEGRA_VIRTUALIZATION),y)
|
ifeq ($(CONFIG_TEGRA_VIRTUALIZATION),y)
|
||||||
|
|||||||
@@ -891,8 +891,10 @@ static const struct drm_driver tegra_drm_driver = {
|
|||||||
.debugfs_init = tegra_debugfs_init,
|
.debugfs_init = tegra_debugfs_init,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(NV_UNEXPORT_FD_HANDLE_CONVERSION)
|
||||||
.prime_handle_to_fd = drm_gem_prime_handle_to_fd,
|
.prime_handle_to_fd = drm_gem_prime_handle_to_fd,
|
||||||
.prime_fd_to_handle = drm_gem_prime_fd_to_handle,
|
.prime_fd_to_handle = drm_gem_prime_fd_to_handle,
|
||||||
|
#endif
|
||||||
.gem_prime_import = tegra_gem_prime_import,
|
.gem_prime_import = tegra_gem_prime_import,
|
||||||
|
|
||||||
.dumb_create = tegra_bo_dumb_create,
|
.dumb_create = tegra_bo_dumb_create,
|
||||||
|
|||||||
Reference in New Issue
Block a user