commit 5fe09ce91a8f38b60eacba71ec3f0795b24f7640
Author: Łukasz Wojniłowicz <lukasz.wojnilowicz(a)gmail.com>
Date: Thu Nov 9 18:50:14 2023 +0100
Fix build on kernel-6.6.1
0011-kernel-6.0.patch | 151 -------------------------------------------------
kernel-6.6.1.patch | 14 +++++
nvidia-340xx-kmod.spec | 7 ++-
3 files changed, 20 insertions(+), 152 deletions(-)
---
diff --git a/kernel-6.6.1.patch b/kernel-6.6.1.patch
new file mode 100644
index 0000000..fec2e28
--- /dev/null
+++ b/kernel-6.6.1.patch
@@ -0,0 +1,14 @@
+diff -Naur a/kernel/nv-drm.c b/kernel/nv-drm.c
+--- a/kernel/nv-drm.c 2023-11-09 18:41:02.535583785 +0100
++++ b/kernel/nv-drm.c 2023-11-09 18:41:37.916798976 +0100
+@@ -277,8 +277,9 @@
+
+ .ioctls = nv_drm_ioctls,
+ .num_ioctls = ARRAY_SIZE(nv_drm_ioctls),
+-
++#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 6, 0)
+ .prime_handle_to_fd = drm_gem_prime_handle_to_fd,
++#endif
+ #if defined(NV_DRM_DRIVER_HAS_GEM_PRIME_CALLBACKS)
+ .gem_prime_export = nv_drm_gem_prime_export,
+ .gem_prime_get_sg_table = nv_drm_gem_prime_get_sg_table,
diff --git a/nvidia-340xx-kmod.spec b/nvidia-340xx-kmod.spec
index b92bae6..942f616 100644
--- a/nvidia-340xx-kmod.spec
+++ b/nvidia-340xx-kmod.spec
@@ -12,7 +12,7 @@ Name: nvidia-340xx-kmod
Epoch: 1
Version: 340.108
# Taken over by kmodtool
-Release: 27%{?dist}
+Release: 28%{?dist}
Summary: NVIDIA display driver kernel module
Group: System Environment/Kernel
License: Redistributable, no modification permitted
@@ -23,6 +23,7 @@ Patch0: import-files-from-390.157.patch
Patch1: fix-build-issues.patch
Patch2: kernel-6.3.1.patch
Patch3: kernel-6.5.2.patch
+Patch4: kernel-6.6.1.patch
BuildRequires: elfutils-libelf-devel
BuildRequires: gcc
@@ -53,6 +54,7 @@ tar --use-compress-program xz -xf
%{_datadir}/%{name}-%{version}/%{name}-%{versi
%patch 1 -p1
%patch 2 -p1
%patch 3 -p1
+%patch 4 -p1
for kernel_version in %{?kernel_versions} ; do
cp -a kernel _kmod_build_${kernel_version%%___*}
@@ -81,6 +83,9 @@ done
%{?akmod_install}
%changelog
+* Thu Nov 09 2023 Łukasz Wojniłowicz <lukasz.wojnilowicz(a)gmail.com> - 1:340.108-28
+- Fix build on kernel-6.6.1
+
* Mon Sep 11 2023 Łukasz Wojniłowicz <lukasz.wojnilowicz(a)gmail.com> - 1:340.108-27
- Fix build on kernel-6.5.2
Show replies by date