commit 78b7ad69102b0db3929cf32a5e97ca358e8d5a38 Author: Jan Rękorajski <bagg...@pld-linux.org> Date: Sun Mar 17 23:48:32 2024 +0100
- fix builing with kernel 6.8 kernel-6.8.patch | 12 ++++++++++++ xorg-driver-video-nvidia-legacy-390xx.spec | 2 ++ 2 files changed, 14 insertions(+) --- diff --git a/xorg-driver-video-nvidia-legacy-390xx.spec b/xorg-driver-video-nvidia-legacy-390xx.spec index c0971a9..a4abb2f 100644 --- a/xorg-driver-video-nvidia-legacy-390xx.spec +++ b/xorg-driver-video-nvidia-legacy-390xx.spec @@ -59,6 +59,7 @@ Patch6: kernel-6.5-garbage-collect-all-references-to-get_user.patch Patch7: kernel-6.5-handle-get_user_pages-vmas-argument-remova.patch Patch8: kernel-6.5-handle-get_user_pages-vmas-argument-removal-x8664.patch Patch9: kernel-6.6-backport-drm_gem_prime_handle_to_fd-changes-from-470.patch +Patch10: kernel-6.8.patch URL: https://www.nvidia.com/en-us/drivers/unix/ BuildRequires: rpm-build >= 4.6 BuildRequires: rpmbuild(macros) >= 1.752 @@ -336,6 +337,7 @@ rm -rf NVIDIA-Linux-x86*-%{version}* %patch8 -p1 %endif %patch9 -p1 +%patch10 -p1 echo 'EXTRA_CFLAGS += -Wno-pointer-arith -Wno-sign-compare -Wno-unused' >> kernel/Makefile.kbuild %build diff --git a/kernel-6.8.patch b/kernel-6.8.patch new file mode 100644 index 0000000..9cf4f81 --- /dev/null +++ b/kernel-6.8.patch @@ -0,0 +1,12 @@ +--- NVIDIA-Linux-x86_64-390.157-no-compat32/kernel/nvidia-drm/nvidia-drm-drv.c~ 2024-03-17 23:33:31.000000000 +0100 ++++ NVIDIA-Linux-x86_64-390.157-no-compat32/kernel/nvidia-drm/nvidia-drm-drv.c 2024-03-17 23:46:53.389849541 +0100 +@@ -651,6 +651,9 @@ + .llseek = noop_llseek, + }; + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 8, 0) ++#define DRM_UNLOCKED 0 ++#endif + static const struct drm_ioctl_desc nv_drm_ioctls[] = { + #if defined(NV_DRM_ATOMIC_MODESET_AVAILABLE) + DRM_IOCTL_DEF_DRV(NVIDIA_GEM_IMPORT_NVKMS_MEMORY, ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/xorg-driver-video-nvidia-legacy-390xx.git/commitdiff/78b7ad69102b0db3929cf32a5e97ca358e8d5a38 _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit