mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
gpu: drm: fb: Align deferred IO ops helper name for Linux6.6
The FB deferred IO ops helper name is changed in Linux 6.6 with below mainline kernel change: --- commit 744d35d3436fbeed9131f6ab717aeb3f775b19c4 Author: Thomas Zimmermann <tzimmermann@suse.de> Date: Sat Jul 29 21:26:49 2023 +0200 fbdev: Align deferred I/O with naming of helpers --- Use the new macros name. Bug 4346767 Change-Id: Idc2e2319994fd2ed7040d8d5528a0d6074257420 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3008092 GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
abfab2085e
commit
0f76fc5e17
3
Makefile
3
Makefile
@@ -55,6 +55,9 @@ subdir-ccflags-y += -DNV_SPLIT_PAGE_POOL_HEADER
|
||||
|
||||
# Unexport helpers for fd/handle conversion
|
||||
subdir-ccflags-y += -DNV_UNEXPORT_FD_HANDLE_CONVERSION
|
||||
|
||||
# FB Deferred IO helpers name alignment
|
||||
subdir-ccflags-y += -DNV_FB_DEFERRED_IO_OPS_RENAME
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_TEGRA_VIRTUALIZATION),y)
|
||||
|
||||
@@ -215,10 +215,16 @@ static int tegra_fb_mmap(struct fb_info *info, struct vm_area_struct *vma)
|
||||
}
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 5, 0)
|
||||
#if defined(NV_FB_DEFERRED_IO_OPS_RENAME)
|
||||
FB_GEN_DEFAULT_DEFERRED_IOMEM_OPS(tegra_fb,
|
||||
drm_fb_helper_damage_range,
|
||||
drm_fb_helper_damage_area)
|
||||
#else
|
||||
FB_GEN_DEFAULT_DEFERRED_IO_OPS(tegra_fb,
|
||||
drm_fb_helper_damage_range,
|
||||
drm_fb_helper_damage_area)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
static const struct fb_ops tegra_fb_ops = {
|
||||
.owner = THIS_MODULE,
|
||||
|
||||
Reference in New Issue
Block a user