aboutsummaryrefslogtreecommitdiff
path: root/system/nvidia-legacy390-kernel/patches/kernel-4.16.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/nvidia-legacy390-kernel/patches/kernel-4.16.patch')
-rw-r--r--system/nvidia-legacy390-kernel/patches/kernel-4.16.patch47
1 files changed, 0 insertions, 47 deletions
diff --git a/system/nvidia-legacy390-kernel/patches/kernel-4.16.patch b/system/nvidia-legacy390-kernel/patches/kernel-4.16.patch
deleted file mode 100644
index 7d4501eca8ee6..0000000000000
--- a/system/nvidia-legacy390-kernel/patches/kernel-4.16.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-From 38a66ed47f5340abd370edcd1f7cf816b8ad478e Mon Sep 17 00:00:00 2001
-From: BlackEagle <ike.devolder@gmail.com>
-Date: Thu, 6 Aug 2020 12:11:38 +0200
-Subject: [PATCH 1/2] kernel-4.16.patch
-
-Signed-off-by: BlackEagle <ike.devolder@gmail.com>
----
- kernel/common/inc/nv-linux.h | 4 ++++
- kernel/conftest.sh | 5 +++++
- 2 files changed, 9 insertions(+)
-
-diff --git a/kernel/common/inc/nv-linux.h b/kernel/common/inc/nv-linux.h
-index ac5bb95..ce6f891 100644
---- a/kernel/common/inc/nv-linux.h
-+++ b/kernel/common/inc/nv-linux.h
-@@ -175,7 +175,11 @@ static inline uid_t __kuid_val(kuid_t uid)
-
- #if defined(NV_VM_INSERT_PAGE_PRESENT)
- #include <linux/pagemap.h>
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0)
- #include <linux/dma-mapping.h>
-+#else
-+#include <linux/dma-direct.h>
-+#endif
- #endif
-
- #if defined(CONFIG_SWIOTLB) && defined(NVCPU_AARCH64)
-diff --git a/kernel/conftest.sh b/kernel/conftest.sh
-index 7da7505..0778ba1 100755
---- a/kernel/conftest.sh
-+++ b/kernel/conftest.sh
-@@ -2045,7 +2045,12 @@ compile_test() {
- # Determine if the phys_to_dma function is present.
- #
- CODE="
-+ #include <linux/version.h>
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0)
- #include <linux/dma-mapping.h>
-+#else
-+ #include <linux/dma-direct.h>
-+#endif
- void conftest_phys_to_dma(void) {
- phys_to_dma();
- }"
---
-2.28.0
-