aboutsummaryrefslogtreecommitdiff
path: root/system/nvidia-legacy340-kernel/patches/0008-kernel-5.16.patch
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2022-05-14 19:58:58 +0200
committerMatteo Bernardini <ponce@slackbuilds.org>2022-05-14 19:58:58 +0200
commitdaf6a07fb29d07e32f567d8cdb5946d39090faa2 (patch)
tree7c0296c9ed1f3c4fa0963b8594ba6232bcce614a /system/nvidia-legacy340-kernel/patches/0008-kernel-5.16.patch
parent73c827ffdc0a7d7133a81f57d98527af17084b75 (diff)
downloadslackbuilds-daf6a07fb29d07e32f567d8cdb5946d39090faa2.tar.xz
system/nvidia-legacy340-kernel: Patch for the newer kernels.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/nvidia-legacy340-kernel/patches/0008-kernel-5.16.patch')
-rw-r--r--system/nvidia-legacy340-kernel/patches/0008-kernel-5.16.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/system/nvidia-legacy340-kernel/patches/0008-kernel-5.16.patch b/system/nvidia-legacy340-kernel/patches/0008-kernel-5.16.patch
new file mode 100644
index 000000000000..0337bc6d3dcb
--- /dev/null
+++ b/system/nvidia-legacy340-kernel/patches/0008-kernel-5.16.patch
@@ -0,0 +1,30 @@
+--- a/kernel/os-interface.h 2019-12-11 22:04:24.000000000 +0000
++++ b/kernel/os-interface.h 2022-01-10 02:04:26.740899810 +0000
+@@ -24,7 +24,12 @@
+ * *
+ \***************************************************************************/
+
++#include <linux/version.h>
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 16, 0)
++#include <linux/stdarg.h>
++#else
+ #include <stdarg.h>
++#endif
+
+ /*
+ * Define away Microsoft compiler extensions when possible
+--- a/kernel/nv.h 2019-12-11 22:04:24.000000000 +0000
++++ b/kernel/nv.h 2022-01-10 02:29:07.828733372 +0000
+@@ -13,7 +13,12 @@
+ #define _NV_H_
+
+ #include <nvtypes.h>
++#include <linux/version.h>
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 16, 0)
++#include <linux/stdarg.h>
++#else
+ #include <stdarg.h>
++#endif
+
+ #if !defined(NV_MIN)
+ #define NV_MIN(_a,_b) ((_a) < (_b) ? (_a) : (_b))