commit 6f636a2d215cd3e633b504d60ffc02e7019d8b56
Author: Thaison Nguyen <thieson08(a)me.com>
Date: Mon Mar 1 08:34:37 2021 +0100
Rebuilt for
https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
kernel-5.11.patch | 25 +++++++++++++++++++++++++
nvidia-340xx-kmod.spec | 4 +++-
2 files changed, 28 insertions(+), 1 deletion(-)
---
diff --git a/kernel-5.11.patch b/kernel-5.11.patch
new file mode 100644
index 0000000..be2a2f1
--- /dev/null
+++ b/kernel-5.11.patch
@@ -0,0 +1,25 @@
+diff -Naur a/kernel/nv-linux.h b/kernel/nv-linux.h
+--- a/kernel/nv-linux.h 2021-02-23 20:01:52.429999710 +0100
++++ b/kernel/nv-linux.h 2021-02-23 14:48:00.163333638 +0100
+@@ -119,7 +119,8 @@
+ #include <asm/tlbflush.h> /* flush_tlb(), flush_tlb_all() */
+ #include <linux/cpu.h> /* CPU hotplug support */
+ #endif
+-#include <asm/kmap_types.h> /* page table entry lookup */
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0)
++ #include <asm/kmap_types.h> /* page table entry lookup */
+
+ #include <linux/pci.h> /* pci_find_class, etc */
+ #include <linux/interrupt.h> /* tasklets, interrupt helpers */
+--- a/kernel/uvm/nvidia_uvm_linux.h 2019-12-11 17:04:24.000000000 -0500
++++ b/kernel/uvm/nvidia_uvm_linux.h 2021-02-24 06:26:26.237367942 -0500
+@@ -141,7 +141,8 @@
+ #if !defined(NV_VMWARE)
+ #include <asm/tlbflush.h> /* flush_tlb(), flush_tlb_all() */
+ #endif
+-#include <asm/kmap_types.h> /* page table entry lookup */
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0)
++ #include <asm/kmap_types.h> /* page table entry lookup */
+
+ #include <linux/interrupt.h> /* tasklets, interrupt helpers */
+ #include <linux/timer.h>
diff --git a/nvidia-340xx-kmod.spec b/nvidia-340xx-kmod.spec
index dd3e182..c511e19 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: 10%{?dist}
+Release: 11%{?dist}
Summary: NVIDIA display driver kernel module
Group: System Environment/Kernel
License: Redistributable, no modification permitted
@@ -24,6 +24,7 @@ Patch1: kernel-5.7.patch
Patch2: kernel-5.8.patch
Patch3: kernel-5.9.patch
Patch4: kernel-5.10.patch
+Patch5: kernel-5.11.patch
BuildRequires: elfutils-libelf-devel
BuildRequires: gcc
@@ -54,6 +55,7 @@ tar --use-compress-program xz -xf
%{_datadir}/%{name}-%{version}/%{name}-%{versi
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
%patch0 -p1
for kernel_version in %{?kernel_versions} ; do