aboutsummaryrefslogtreecommitdiff
path: root/system/nvidia-open-kernel
diff options
context:
space:
mode:
authorLenard Spencer <lenardrspencer@gmail.com>2022-09-08 22:55:26 +0100
committerDave Woodfall <dave@slackbuilds.org>2022-09-08 22:57:39 +0100
commit411744566f2b51f269177d41bab97cbad9cfa20c (patch)
treeb9cffbd29331e7141a41343dc7a70bcc220c0cb2 /system/nvidia-open-kernel
parent78807236efaa1be2dee666592972ad5be1092d64 (diff)
system/nvidia-open-kernel: New upstream patch.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Diffstat (limited to 'system/nvidia-open-kernel')
-rw-r--r--system/nvidia-open-kernel/nvidia-open-kernel-6.0.patch18
-rw-r--r--system/nvidia-open-kernel/nvidia-open-kernel.SlackBuild2
2 files changed, 13 insertions, 7 deletions
diff --git a/system/nvidia-open-kernel/nvidia-open-kernel-6.0.patch b/system/nvidia-open-kernel/nvidia-open-kernel-6.0.patch
index f3d780c026381..047d6784ec24c 100644
--- a/system/nvidia-open-kernel/nvidia-open-kernel-6.0.patch
+++ b/system/nvidia-open-kernel/nvidia-open-kernel-6.0.patch
@@ -1,9 +1,15 @@
---- a/kernel-open/nvidia-drm/nvidia-drm-helper.c 2022-07-20 16:42:53.000000000 +0300
-+++ b/kernel-open/nvidia-drm/nvidia-drm-helper.c 2022-08-20 16:32:34.836742336 +0300
-@@ -28,6 +28,7 @@
+diff -Nur kernel.orig/nvidia-drm/nvidia-drm-helper.h kernel/nvidia-drm/nvidia-drm-helper.h
+--- a/kernel-open/nvidia-drm/nvidia-drm-helper.h 2022-07-20 09:42:52.000000000 -0400
++++ b/kernel-open/nvidia-drm/nvidia-drm-helper.h 2022-09-07 20:36:36.725936810 -0400
+@@ -109,6 +109,11 @@
*/
+ #include <drm/drm_crtc.h>
- #include "nvidia-drm-helper.h"
++#include <linux/version.h>
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 0, 0))
+#include <drm/drm_framebuffer.h>
-
- #include "nvmisc.h"
++#endif
++
+ #if defined(drm_for_each_plane)
+ #define nv_drm_for_each_plane(plane, dev) \
+ drm_for_each_plane(plane, dev)
diff --git a/system/nvidia-open-kernel/nvidia-open-kernel.SlackBuild b/system/nvidia-open-kernel/nvidia-open-kernel.SlackBuild
index 578216e2ce12a..322368dc8939c 100644
--- a/system/nvidia-open-kernel/nvidia-open-kernel.SlackBuild
+++ b/system/nvidia-open-kernel/nvidia-open-kernel.SlackBuild
@@ -28,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=nvidia-open-kernel
VERSION=${VERSION:-515.65.01}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}