summaryrefslogtreecommitdiffstats
path: root/system/nvidia-legacy390-kernel/patches/kernel-6.3_64.patch
diff options
context:
space:
mode:
author Lenard Spencer <lenardrspencer@gmai.com>2024-03-10 20:54:58 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2024-03-11 06:44:42 +0700
commit2411938db958e663da6852846541fbbe98b59bb8 (patch)
treefcebd4515b83b9e0439912c6a190db6556a7cb7f /system/nvidia-legacy390-kernel/patches/kernel-6.3_64.patch
parentd17c6f08bff588301c2ec24b110222f715caf4f8 (diff)
downloadslackbuilds-2411938db958e663da6852846541fbbe98b59bb8.tar.gz
slackbuilds-2411938db958e663da6852846541fbbe98b59bb8.tar.xz
system/nvidia-legacy390-kernel: Fix build on i586.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to '')
-rw-r--r--system/nvidia-legacy390-kernel/patches/kernel-6.3_64.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/system/nvidia-legacy390-kernel/patches/kernel-6.3_64.patch b/system/nvidia-legacy390-kernel/patches/kernel-6.3_64.patch
new file mode 100644
index 0000000000..1b2bfe6c89
--- /dev/null
+++ b/system/nvidia-legacy390-kernel/patches/kernel-6.3_64.patch
@@ -0,0 +1,13 @@
+diff --git a/nvidia-uvm/uvm8.c b/nvidia-uvm/uvm8.c
+index 11cb373..49e1047 100644
+--- a/nvidia-uvm/uvm8.c
++++ b/nvidia-uvm/uvm8.c
+@@ -658,7 +658,7 @@ static int uvm_mmap(struct file *filp, struct vm_area_struct *vma)
+ // Using VM_DONTCOPY would be nice, but madvise(MADV_DOFORK) can reset that
+ // so we have to handle vm_open on fork anyway. We could disable MADV_DOFORK
+ // with VM_IO, but that causes other mapping issues.
+- vma->vm_flags |= VM_MIXEDMAP | VM_DONTEXPAND;
++ vm_flags_set(vma, VM_MIXEDMAP | VM_DONTEXPAND);
+
+ vma->vm_ops = &uvm_vm_ops_managed;
+