[arch-commits] Commit in ndiswrapper-arch/repos (3 files)
Date: Sunday, November 24, 2019 @ 11:30:14 Author: heftig Revision: 532963 archrelease: copy trunk to community-testing-x86_64 Added: ndiswrapper-arch/repos/community-testing-x86_64/ ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 532959, ndiswrapper-arch/trunk/PKGBUILD) ndiswrapper-arch/repos/community-testing-x86_64/linux-5.3.patch (from rev 532961, ndiswrapper-arch/trunk/linux-5.3.patch) -+ PKGBUILD| 38 + linux-5.3.patch | 69 ++ 2 files changed, 107 insertions(+) Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 532959, ndiswrapper-arch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2019-11-24 11:30:14 UTC (rev 532963) @@ -0,0 +1,38 @@ +# Maintainer: Felix Yan +# Contributor: maz-1 + +pkgname=ndiswrapper-arch +pkgver=1.62 +pkgrel=6 +pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by vendors, kernel module for Arch kernel" +arch=('x86_64') +url="https://sourceforge.net/projects/ndiswrapper/; +license=('GPL') +makedepends=('linux-headers') +provides=('NDISWRAPPER-MODULE') +replaces=('ndiswrapper-module') +source=("https://sourceforge.net/projects/ndiswrapper/files/stable/ndiswrapper-$pkgver.tar.gz; +'linux-5.3.patch') +sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783' + 'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d') + +prepare() { + cd ndiswrapper-$pkgver + patch --no-backup-if-mismatch -p2 -i "$srcdir"/linux-5.3.patch +} + +build() { + _kernver="$(task = NULL; + info->count = 0; + #ifdef CONFIG_SMP ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,3,0) + cpumask_setall(>cpus_allowed); ++#else ++ cpumask_setall(>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(>cpus_allowed, tsk_cpus_allowed(current)); ++#else ++ cpumask_copy(>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, >cpus_allowed); ++#else ++ set_cpus_allowed_ptr(current, >cpus_mask); ++#endif + #endif + mutex_unlock(>lock); + }
[arch-commits] Commit in ndiswrapper-arch/repos (3 files)
Date: Wednesday, November 20, 2019 @ 20:49:22 Author: heftig Revision: 530952 archrelease: copy trunk to community-testing-x86_64 Added: ndiswrapper-arch/repos/community-testing-x86_64/ ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 530949, ndiswrapper-arch/trunk/PKGBUILD) ndiswrapper-arch/repos/community-testing-x86_64/linux-5.3.patch (from rev 530949, ndiswrapper-arch/trunk/linux-5.3.patch) -+ PKGBUILD| 38 + linux-5.3.patch | 69 ++ 2 files changed, 107 insertions(+) Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 530949, ndiswrapper-arch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2019-11-20 20:49:22 UTC (rev 530952) @@ -0,0 +1,38 @@ +# Maintainer: Felix Yan +# Contributor: maz-1 + +pkgname=ndiswrapper-arch +pkgver=1.62 +pkgrel=5 +pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by vendors, kernel module for Arch kernel" +arch=('x86_64') +url="https://sourceforge.net/projects/ndiswrapper/; +license=('GPL') +makedepends=('linux-headers') +provides=('NDISWRAPPER-MODULE') +replaces=('ndiswrapper-module') +source=("https://sourceforge.net/projects/ndiswrapper/files/stable/ndiswrapper-$pkgver.tar.gz; +'linux-5.3.patch') +sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783' + 'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d') + +prepare() { + cd ndiswrapper-$pkgver + patch --no-backup-if-mismatch -p2 -i "$srcdir"/linux-5.3.patch +} + +build() { + _kernver="$(task = NULL; + info->count = 0; + #ifdef CONFIG_SMP ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,3,0) + cpumask_setall(>cpus_allowed); ++#else ++ cpumask_setall(>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(>cpus_allowed, tsk_cpus_allowed(current)); ++#else ++ cpumask_copy(>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, >cpus_allowed); ++#else ++ set_cpus_allowed_ptr(current, >cpus_mask); ++#endif + #endif + mutex_unlock(>lock); + }
[arch-commits] Commit in ndiswrapper-arch/repos (3 files)
Date: Tuesday, November 12, 2019 @ 23:42:25 Author: heftig Revision: 527067 archrelease: copy trunk to community-testing-x86_64 Added: ndiswrapper-arch/repos/community-testing-x86_64/ ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 527062, ndiswrapper-arch/trunk/PKGBUILD) ndiswrapper-arch/repos/community-testing-x86_64/linux-5.3.patch (from rev 527063, ndiswrapper-arch/trunk/linux-5.3.patch) -+ PKGBUILD| 38 + linux-5.3.patch | 69 ++ 2 files changed, 107 insertions(+) Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 527062, ndiswrapper-arch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2019-11-12 23:42:25 UTC (rev 527067) @@ -0,0 +1,38 @@ +# Maintainer: Felix Yan +# Contributor: maz-1 + +pkgname=ndiswrapper-arch +pkgver=1.62 +pkgrel=4 +pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by vendors, kernel module for Arch kernel" +arch=('x86_64') +url="https://sourceforge.net/projects/ndiswrapper/; +license=('GPL') +makedepends=('linux-headers') +provides=('NDISWRAPPER-MODULE') +replaces=('ndiswrapper-module') +source=("https://sourceforge.net/projects/ndiswrapper/files/stable/ndiswrapper-$pkgver.tar.gz; +'linux-5.3.patch') +sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783' + 'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d') + +prepare() { + cd ndiswrapper-$pkgver + patch --no-backup-if-mismatch -p2 -i "$srcdir"/linux-5.3.patch +} + +build() { + _kernver="$(task = NULL; + info->count = 0; + #ifdef CONFIG_SMP ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,3,0) + cpumask_setall(>cpus_allowed); ++#else ++ cpumask_setall(>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(>cpus_allowed, tsk_cpus_allowed(current)); ++#else ++ cpumask_copy(>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, >cpus_allowed); ++#else ++ set_cpus_allowed_ptr(current, >cpus_mask); ++#endif + #endif + mutex_unlock(>lock); + }