1
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-11-24 10:16:18 +00:00
Lakka-LibreELEC/packages/x11/driver/xf86-video-nvidia-legacy/patches/xf86-video-nvidia-legacy-100.09-kernel-5.17.patch

19 lines
577 B
Diff

--- a/kernel/nv-linux.h 2022-02-20 00:41:53.585928825 +0000
+++ b/kernel/nv-linux.h 2022-02-20 00:43:04.285797471 +0000
@@ -2051,11 +2051,15 @@
__entry; \
})
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)
#if defined(NV_PDE_DATA_PRESENT)
# define NV_PDE_DATA(inode) PDE_DATA(inode)
#else
# define NV_PDE_DATA(inode) PDE(inode)->data
#endif
+#else
+# define NV_PDE_DATA(inode) inode->i_private
+#endif
#if defined(NV_PROC_REMOVE_PRESENT)
# define NV_REMOVE_PROC_ENTRY(entry) \