summaryrefslogtreecommitdiff
path: root/libre/ndiswrapper-module/kernel-5.3.patch
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2020-08-17 16:02:51 -0400
committerDavid P <megver83@parabola.nu>2020-08-17 16:02:55 -0400
commite84e8b449ab8b70e730e31e5d45f99259a68259e (patch)
treeb36da9e075d1a237fd4e1c7707fb978e23d953d3 /libre/ndiswrapper-module/kernel-5.3.patch
parent6ac3d353c841221fab532dc91cd3134132ef4d67 (diff)
downloadabslibre-e84e8b449ab8b70e730e31e5d45f99259a68259e.tar.gz
abslibre-e84e8b449ab8b70e730e31e5d45f99259a68259e.tar.bz2
abslibre-e84e8b449ab8b70e730e31e5d45f99259a68259e.zip
remove ndiswrapper-module
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'libre/ndiswrapper-module/kernel-5.3.patch')
-rw-r--r--libre/ndiswrapper-module/kernel-5.3.patch69
1 files changed, 0 insertions, 69 deletions
diff --git a/libre/ndiswrapper-module/kernel-5.3.patch b/libre/ndiswrapper-module/kernel-5.3.patch
deleted file mode 100644
index 33e3ed3ba..000000000
--- a/libre/ndiswrapper-module/kernel-5.3.patch
+++ /dev/null
@@ -1,69 +0,0 @@
-diff --git a/ndiswrapper/driver/ntoskernel.c b/ndiswrapper/driver/ntoskernel.c
-index 4fe0dc1..4dd7a89 100644
---- a/ndiswrapper/driver/ntoskernel.c
-+++ b/ndiswrapper/driver/ntoskernel.c
-@@ -2524,7 +2524,11 @@ int ntoskernel_init(void)
- info->task = NULL;
- info->count = 0;
- #ifdef CONFIG_SMP
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,3,0)
- cpumask_setall(&info->cpus_allowed);
-+#else
-+ cpumask_setall(&info->cpus_mask);
-+#endif
- #endif
- }
- } while (0);
-diff --git a/ndiswrapper/driver/ntoskernel.h b/ndiswrapper/driver/ntoskernel.h
-index 3c4c6ff..8a71ae3 100644
---- a/ndiswrapper/driver/ntoskernel.h
-+++ b/ndiswrapper/driver/ntoskernel.h
-@@ -107,7 +107,11 @@ static cpumask_t cpumasks[NR_CPUS];
- #endif /* CONFIG_SMP */
-
- #ifndef tsk_cpus_allowed
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,3,0)
- #define tsk_cpus_allowed(tsk) (&(tsk)->cpus_allowed)
-+#else
-+#define tsk_cpus_allowed(tsk) (&(tsk)->cpus_mask)
-+#endif
- #endif
-
- #ifndef __packed
-@@ -631,7 +635,12 @@ struct irql_info {
- int count;
- struct mutex lock;
- #ifdef CONFIG_SMP
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,3,0)
- cpumask_t cpus_allowed;
-+#else
-+ const cpumask_t *cpus_ptr;
-+ cpumask_t cpus_mask;
-+#endif
- #endif
- struct task_struct *task;
- };
-@@ -658,7 +667,11 @@ static inline KIRQL raise_irql(KIRQL newirql)
- /* TODO: is this enough to pin down to current cpu? */
- #ifdef CONFIG_SMP
- assert(task_cpu(current) == smp_processor_id());
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,3,0)
- cpumask_copy(&info->cpus_allowed, tsk_cpus_allowed(current));
-+#else
-+ cpumask_copy(&info->cpus_mask, tsk_cpus_allowed(current));
-+#endif
- set_cpus_allowed_ptr(current, cpumask_of(smp_processor_id()));
- #endif
- put_cpu_var(irql_info);
-@@ -682,7 +695,11 @@ static inline void lower_irql(KIRQL oldirql)
- if (--info->count == 0) {
- info->task = NULL;
- #ifdef CONFIG_SMP
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,3,0)
- set_cpus_allowed_ptr(current, &info->cpus_allowed);
-+#else
-+ set_cpus_allowed_ptr(current, &info->cpus_mask);
-+#endif
- #endif
- mutex_unlock(&info->lock);
- }