[arch-commits] Commit in ndiswrapper-arch/repos (4 files)

2020-01-26 Thread Jan Steffens via arch-commits
Date: Sunday, January 26, 2020 @ 10:25:56
  Author: heftig
Revision: 555662

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 555659, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.3.patch
(from rev 555659, ndiswrapper-arch/trunk/kernel-5.3.patch)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 555659, ndiswrapper-arch/trunk/kernel-5.4.patch)

--+
 PKGBUILD |   40 ++
 kernel-5.3.patch |   69 +
 kernel-5.4.patch |   22 
 3 files changed, 131 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
555659, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-01-26 10:25:56 UTC (rev 555662)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=23
+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;
+'kernel-5.3.patch' 'kernel-5.4.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p2 -i "$srcdir"/kernel-5.3.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.4.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);
+   }

Copied: ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch (from 
rev 555659, ndiswrapper-arch/trunk/kernel-5.4.patch)
===
--- community-testing-x86_64/kernel-5.4.patch   (rev 0)
+++ community-testing-x86_64/kernel-5.4.patch   2020-01-26 10:25:56 UTC (rev 
555662)
@@ -0,0 +1,22 @@
+diff -u -r ndiswrapper-1.62/driver/wrapndis.c 
ndiswrapper-1.62-5.4/driver/wrapndis.c
+--- ndiswrapper-1.62/driver/wrapndis.c 2019-02-11 04:11:14.0 +
 ndiswrapper-1.62-5.4/driver/wrapndis.c 2019-11-26 00:02:39.035464963 

[arch-commits] Commit in ndiswrapper-arch/repos (4 files)

2020-01-23 Thread Jan Steffens via arch-commits
Date: Thursday, January 23, 2020 @ 11:25:08
  Author: heftig
Revision: 554906

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 554902, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.3.patch
(from rev 554902, ndiswrapper-arch/trunk/kernel-5.3.patch)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 554902, ndiswrapper-arch/trunk/kernel-5.4.patch)

--+
 PKGBUILD |   40 ++
 kernel-5.3.patch |   69 +
 kernel-5.4.patch |   22 
 3 files changed, 131 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
554902, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-01-23 11:25:08 UTC (rev 554906)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=22
+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;
+'kernel-5.3.patch' 'kernel-5.4.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p2 -i "$srcdir"/kernel-5.3.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.4.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);
+   }

Copied: ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch (from 
rev 554902, ndiswrapper-arch/trunk/kernel-5.4.patch)
===
--- community-testing-x86_64/kernel-5.4.patch   (rev 0)
+++ community-testing-x86_64/kernel-5.4.patch   2020-01-23 11:25:08 UTC (rev 
554906)
@@ -0,0 +1,22 @@
+diff -u -r ndiswrapper-1.62/driver/wrapndis.c 
ndiswrapper-1.62-5.4/driver/wrapndis.c
+--- ndiswrapper-1.62/driver/wrapndis.c 2019-02-11 04:11:14.0 +
 ndiswrapper-1.62-5.4/driver/wrapndis.c 2019-11-26 00:02:39.035464963 

[arch-commits] Commit in ndiswrapper-arch/repos (4 files)

2020-01-17 Thread Jan Steffens via arch-commits
Date: Friday, January 17, 2020 @ 23:51:43
  Author: heftig
Revision: 552943

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 552935, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.3.patch
(from rev 552935, ndiswrapper-arch/trunk/kernel-5.3.patch)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 552935, ndiswrapper-arch/trunk/kernel-5.4.patch)

--+
 PKGBUILD |   40 ++
 kernel-5.3.patch |   69 +
 kernel-5.4.patch |   22 
 3 files changed, 131 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
552935, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-01-17 23:51:43 UTC (rev 552943)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=21
+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;
+'kernel-5.3.patch' 'kernel-5.4.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p2 -i "$srcdir"/kernel-5.3.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.4.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);
+   }

Copied: ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch (from 
rev 552935, ndiswrapper-arch/trunk/kernel-5.4.patch)
===
--- community-testing-x86_64/kernel-5.4.patch   (rev 0)
+++ community-testing-x86_64/kernel-5.4.patch   2020-01-17 23:51:43 UTC (rev 
552943)
@@ -0,0 +1,22 @@
+diff -u -r ndiswrapper-1.62/driver/wrapndis.c 
ndiswrapper-1.62-5.4/driver/wrapndis.c
+--- ndiswrapper-1.62/driver/wrapndis.c 2019-02-11 04:11:14.0 +
 ndiswrapper-1.62-5.4/driver/wrapndis.c 2019-11-26 00:02:39.035464963 

[arch-commits] Commit in ndiswrapper-arch/repos (4 files)

2020-01-14 Thread Jan Steffens via arch-commits
Date: Wednesday, January 15, 2020 @ 06:59:03
  Author: heftig
Revision: 552587

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 552579, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.3.patch
(from rev 552580, ndiswrapper-arch/trunk/kernel-5.3.patch)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 552581, ndiswrapper-arch/trunk/kernel-5.4.patch)

--+
 PKGBUILD |   40 ++
 kernel-5.3.patch |   69 +
 kernel-5.4.patch |   22 
 3 files changed, 131 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
552579, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-01-15 06:59:03 UTC (rev 552587)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=20
+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;
+'kernel-5.3.patch' 'kernel-5.4.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p2 -i "$srcdir"/kernel-5.3.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.4.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);
+   }

Copied: ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch (from 
rev 552581, ndiswrapper-arch/trunk/kernel-5.4.patch)
===
--- community-testing-x86_64/kernel-5.4.patch   (rev 0)
+++ community-testing-x86_64/kernel-5.4.patch   2020-01-15 06:59:03 UTC (rev 
552587)
@@ -0,0 +1,22 @@
+diff -u -r ndiswrapper-1.62/driver/wrapndis.c 
ndiswrapper-1.62-5.4/driver/wrapndis.c
+--- ndiswrapper-1.62/driver/wrapndis.c 2019-02-11 04:11:14.0 +
 ndiswrapper-1.62-5.4/driver/wrapndis.c 2019-11-26 00:02:39.035464963 

[arch-commits] Commit in ndiswrapper-arch/repos (4 files)

2020-01-12 Thread Jan Steffens via arch-commits
Date: Sunday, January 12, 2020 @ 13:09:30
  Author: heftig
Revision: 552205

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 552199, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.3.patch
(from rev 552199, ndiswrapper-arch/trunk/kernel-5.3.patch)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 552199, ndiswrapper-arch/trunk/kernel-5.4.patch)

--+
 PKGBUILD |   40 ++
 kernel-5.3.patch |   69 +
 kernel-5.4.patch |   22 
 3 files changed, 131 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
552199, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-01-12 13:09:30 UTC (rev 552205)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=19
+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;
+'kernel-5.3.patch' 'kernel-5.4.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p2 -i "$srcdir"/kernel-5.3.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.4.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);
+   }

Copied: ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch (from 
rev 552199, ndiswrapper-arch/trunk/kernel-5.4.patch)
===
--- community-testing-x86_64/kernel-5.4.patch   (rev 0)
+++ community-testing-x86_64/kernel-5.4.patch   2020-01-12 13:09:30 UTC (rev 
552205)
@@ -0,0 +1,22 @@
+diff -u -r ndiswrapper-1.62/driver/wrapndis.c 
ndiswrapper-1.62-5.4/driver/wrapndis.c
+--- ndiswrapper-1.62/driver/wrapndis.c 2019-02-11 04:11:14.0 +
 ndiswrapper-1.62-5.4/driver/wrapndis.c 2019-11-26 00:02:39.035464963 

[arch-commits] Commit in ndiswrapper-arch/repos (4 files)

2020-01-09 Thread Jan Steffens via arch-commits
Date: Thursday, January 9, 2020 @ 15:25:27
  Author: heftig
Revision: 551269

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 551264, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.3.patch
(from rev 551265, ndiswrapper-arch/trunk/kernel-5.3.patch)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 551265, ndiswrapper-arch/trunk/kernel-5.4.patch)

--+
 PKGBUILD |   40 ++
 kernel-5.3.patch |   69 +
 kernel-5.4.patch |   22 
 3 files changed, 131 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
551264, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-01-09 15:25:27 UTC (rev 551269)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=18
+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;
+'kernel-5.3.patch' 'kernel-5.4.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p2 -i "$srcdir"/kernel-5.3.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.4.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);
+   }

Copied: ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch (from 
rev 551265, ndiswrapper-arch/trunk/kernel-5.4.patch)
===
--- community-testing-x86_64/kernel-5.4.patch   (rev 0)
+++ community-testing-x86_64/kernel-5.4.patch   2020-01-09 15:25:27 UTC (rev 
551269)
@@ -0,0 +1,22 @@
+diff -u -r ndiswrapper-1.62/driver/wrapndis.c 
ndiswrapper-1.62-5.4/driver/wrapndis.c
+--- ndiswrapper-1.62/driver/wrapndis.c 2019-02-11 04:11:14.0 +
 ndiswrapper-1.62-5.4/driver/wrapndis.c 2019-11-26 00:02:39.035464963 

[arch-commits] Commit in ndiswrapper-arch/repos (4 files)

2020-01-04 Thread Jan Steffens via arch-commits
Date: Sunday, January 5, 2020 @ 00:30:39
  Author: heftig
Revision: 548573

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 548566, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.3.patch
(from rev 548566, ndiswrapper-arch/trunk/kernel-5.3.patch)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 548567, ndiswrapper-arch/trunk/kernel-5.4.patch)

--+
 PKGBUILD |   40 ++
 kernel-5.3.patch |   69 +
 kernel-5.4.patch |   22 
 3 files changed, 131 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
548566, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-01-05 00:30:39 UTC (rev 548573)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=17
+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;
+'kernel-5.3.patch' 'kernel-5.4.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p2 -i "$srcdir"/kernel-5.3.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.4.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);
+   }

Copied: ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch (from 
rev 548567, ndiswrapper-arch/trunk/kernel-5.4.patch)
===
--- community-testing-x86_64/kernel-5.4.patch   (rev 0)
+++ community-testing-x86_64/kernel-5.4.patch   2020-01-05 00:30:39 UTC (rev 
548573)
@@ -0,0 +1,22 @@
+diff -u -r ndiswrapper-1.62/driver/wrapndis.c 
ndiswrapper-1.62-5.4/driver/wrapndis.c
+--- ndiswrapper-1.62/driver/wrapndis.c 2019-02-11 04:11:14.0 +
 ndiswrapper-1.62-5.4/driver/wrapndis.c 2019-11-26 00:02:39.035464963 

[arch-commits] Commit in ndiswrapper-arch/repos (4 files)

2019-12-31 Thread Jan Steffens via arch-commits
Date: Tuesday, December 31, 2019 @ 18:07:09
  Author: heftig
Revision: 545671

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 545667, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.3.patch
(from rev 545668, ndiswrapper-arch/trunk/kernel-5.3.patch)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 545669, ndiswrapper-arch/trunk/kernel-5.4.patch)

--+
 PKGBUILD |   40 ++
 kernel-5.3.patch |   69 +
 kernel-5.4.patch |   22 
 3 files changed, 131 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
545667, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2019-12-31 18:07:09 UTC (rev 545671)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=16
+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;
+'kernel-5.3.patch' 'kernel-5.4.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p2 -i "$srcdir"/kernel-5.3.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.4.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);
+   }

Copied: ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch (from 
rev 545669, ndiswrapper-arch/trunk/kernel-5.4.patch)
===
--- community-testing-x86_64/kernel-5.4.patch   (rev 0)
+++ community-testing-x86_64/kernel-5.4.patch   2019-12-31 18:07:09 UTC (rev 
545671)
@@ -0,0 +1,22 @@
+diff -u -r ndiswrapper-1.62/driver/wrapndis.c 
ndiswrapper-1.62-5.4/driver/wrapndis.c
+--- ndiswrapper-1.62/driver/wrapndis.c 2019-02-11 04:11:14.0 +
 ndiswrapper-1.62-5.4/driver/wrapndis.c 2019-11-26 00:02:39.035464963 

[arch-commits] Commit in ndiswrapper-arch/repos (4 files)

2019-12-23 Thread Jan Steffens via arch-commits
Date: Tuesday, December 24, 2019 @ 03:27:17
  Author: heftig
Revision: 539698

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 539695, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.3.patch
(from rev 539696, ndiswrapper-arch/trunk/kernel-5.3.patch)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 539696, ndiswrapper-arch/trunk/kernel-5.4.patch)

--+
 PKGBUILD |   40 ++
 kernel-5.3.patch |   69 +
 kernel-5.4.patch |   22 
 3 files changed, 131 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
539695, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2019-12-24 03:27:17 UTC (rev 539698)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=14
+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;
+'kernel-5.3.patch' 'kernel-5.4.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p2 -i "$srcdir"/kernel-5.3.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.4.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);
+   }

Copied: ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch (from 
rev 539696, ndiswrapper-arch/trunk/kernel-5.4.patch)
===
--- community-testing-x86_64/kernel-5.4.patch   (rev 0)
+++ community-testing-x86_64/kernel-5.4.patch   2019-12-24 03:27:17 UTC (rev 
539698)
@@ -0,0 +1,22 @@
+diff -u -r ndiswrapper-1.62/driver/wrapndis.c 
ndiswrapper-1.62-5.4/driver/wrapndis.c
+--- ndiswrapper-1.62/driver/wrapndis.c 2019-02-11 04:11:14.0 +
 ndiswrapper-1.62-5.4/driver/wrapndis.c 2019-11-26 00:02:39.035464963 

[arch-commits] Commit in ndiswrapper-arch/repos (4 files)

2019-12-21 Thread Jan Steffens via arch-commits
Date: Saturday, December 21, 2019 @ 17:27:51
  Author: heftig
Revision: 538643

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 538639, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.3.patch
(from rev 538639, ndiswrapper-arch/trunk/kernel-5.3.patch)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 538639, ndiswrapper-arch/trunk/kernel-5.4.patch)

--+
 PKGBUILD |   40 ++
 kernel-5.3.patch |   69 +
 kernel-5.4.patch |   22 
 3 files changed, 131 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
538639, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2019-12-21 17:27:51 UTC (rev 538643)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=13
+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;
+'kernel-5.3.patch' 'kernel-5.4.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p2 -i "$srcdir"/kernel-5.3.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.4.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);
+   }

Copied: ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch (from 
rev 538639, ndiswrapper-arch/trunk/kernel-5.4.patch)
===
--- community-testing-x86_64/kernel-5.4.patch   (rev 0)
+++ community-testing-x86_64/kernel-5.4.patch   2019-12-21 17:27:51 UTC (rev 
538643)
@@ -0,0 +1,22 @@
+diff -u -r ndiswrapper-1.62/driver/wrapndis.c 
ndiswrapper-1.62-5.4/driver/wrapndis.c
+--- ndiswrapper-1.62/driver/wrapndis.c 2019-02-11 04:11:14.0 +
 ndiswrapper-1.62-5.4/driver/wrapndis.c 2019-11-26 00:02:39.035464963 

[arch-commits] Commit in ndiswrapper-arch/repos (4 files)

2019-12-18 Thread Jan Steffens via arch-commits
Date: Wednesday, December 18, 2019 @ 20:30:15
  Author: heftig
Revision: 538158

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 538152, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.3.patch
(from rev 538153, ndiswrapper-arch/trunk/kernel-5.3.patch)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 538153, ndiswrapper-arch/trunk/kernel-5.4.patch)

--+
 PKGBUILD |   40 ++
 kernel-5.3.patch |   69 +
 kernel-5.4.patch |   22 
 3 files changed, 131 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
538152, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2019-12-18 20:30:15 UTC (rev 538158)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=12
+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;
+'kernel-5.3.patch' 'kernel-5.4.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p2 -i "$srcdir"/kernel-5.3.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.4.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);
+   }

Copied: ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch (from 
rev 538153, ndiswrapper-arch/trunk/kernel-5.4.patch)
===
--- community-testing-x86_64/kernel-5.4.patch   (rev 0)
+++ community-testing-x86_64/kernel-5.4.patch   2019-12-18 20:30:15 UTC (rev 
538158)
@@ -0,0 +1,22 @@
+diff -u -r ndiswrapper-1.62/driver/wrapndis.c 
ndiswrapper-1.62-5.4/driver/wrapndis.c
+--- ndiswrapper-1.62/driver/wrapndis.c 2019-02-11 04:11:14.0 +
 ndiswrapper-1.62-5.4/driver/wrapndis.c 2019-11-26 

[arch-commits] Commit in ndiswrapper-arch/repos (4 files)

2019-12-17 Thread Jan Steffens via arch-commits
Date: Wednesday, December 18, 2019 @ 00:20:06
  Author: heftig
Revision: 537998

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 537994, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.3.patch
(from rev 537994, ndiswrapper-arch/trunk/kernel-5.3.patch)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 537995, ndiswrapper-arch/trunk/kernel-5.4.patch)

--+
 PKGBUILD |   40 ++
 kernel-5.3.patch |   69 +
 kernel-5.4.patch |   22 
 3 files changed, 131 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
537994, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2019-12-18 00:20:06 UTC (rev 537998)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=11
+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;
+'kernel-5.3.patch' 'kernel-5.4.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p2 -i "$srcdir"/kernel-5.3.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.4.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);
+   }

Copied: ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch (from 
rev 537995, ndiswrapper-arch/trunk/kernel-5.4.patch)
===
--- community-testing-x86_64/kernel-5.4.patch   (rev 0)
+++ community-testing-x86_64/kernel-5.4.patch   2019-12-18 00:20:06 UTC (rev 
537998)
@@ -0,0 +1,22 @@
+diff -u -r ndiswrapper-1.62/driver/wrapndis.c 
ndiswrapper-1.62-5.4/driver/wrapndis.c
+--- ndiswrapper-1.62/driver/wrapndis.c 2019-02-11 04:11:14.0 +
 ndiswrapper-1.62-5.4/driver/wrapndis.c 2019-11-26 

[arch-commits] Commit in ndiswrapper-arch/repos (4 files)

2019-12-13 Thread Jan Steffens via arch-commits
Date: Friday, December 13, 2019 @ 13:31:15
  Author: heftig
Revision: 537535

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 537532, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.3.patch
(from rev 537532, ndiswrapper-arch/trunk/kernel-5.3.patch)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 537532, ndiswrapper-arch/trunk/kernel-5.4.patch)

--+
 PKGBUILD |   40 ++
 kernel-5.3.patch |   69 +
 kernel-5.4.patch |   22 
 3 files changed, 131 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
537532, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2019-12-13 13:31:15 UTC (rev 537535)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=10
+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;
+'kernel-5.3.patch' 'kernel-5.4.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p2 -i "$srcdir"/kernel-5.3.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.4.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);
+   }

Copied: ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch (from 
rev 537532, ndiswrapper-arch/trunk/kernel-5.4.patch)
===
--- community-testing-x86_64/kernel-5.4.patch   (rev 0)
+++ community-testing-x86_64/kernel-5.4.patch   2019-12-13 13:31:15 UTC (rev 
537535)
@@ -0,0 +1,22 @@
+diff -u -r ndiswrapper-1.62/driver/wrapndis.c 
ndiswrapper-1.62-5.4/driver/wrapndis.c
+--- ndiswrapper-1.62/driver/wrapndis.c 2019-02-11 04:11:14.0 +
 ndiswrapper-1.62-5.4/driver/wrapndis.c 2019-11-26 00:02:39.035464963 

[arch-commits] Commit in ndiswrapper-arch/repos (4 files)

2019-12-05 Thread Jan Steffens via arch-commits
Date: Thursday, December 5, 2019 @ 15:07:55
  Author: heftig
Revision: 535632

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 535628, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.3.patch
(from rev 535629, ndiswrapper-arch/trunk/kernel-5.3.patch)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 535629, ndiswrapper-arch/trunk/kernel-5.4.patch)

--+
 PKGBUILD |   40 ++
 kernel-5.3.patch |   69 +
 kernel-5.4.patch |   22 
 3 files changed, 131 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
535628, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2019-12-05 15:07:55 UTC (rev 535632)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=9
+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;
+'kernel-5.3.patch' 'kernel-5.4.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p2 -i "$srcdir"/kernel-5.3.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.4.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);
+   }

Copied: ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch (from 
rev 535629, ndiswrapper-arch/trunk/kernel-5.4.patch)
===
--- community-testing-x86_64/kernel-5.4.patch   (rev 0)
+++ community-testing-x86_64/kernel-5.4.patch   2019-12-05 15:07:55 UTC (rev 
535632)
@@ -0,0 +1,22 @@
+diff -u -r ndiswrapper-1.62/driver/wrapndis.c 
ndiswrapper-1.62-5.4/driver/wrapndis.c
+--- ndiswrapper-1.62/driver/wrapndis.c 2019-02-11 04:11:14.0 +
 ndiswrapper-1.62-5.4/driver/wrapndis.c 2019-11-26 00:02:39.035464963 

[arch-commits] Commit in ndiswrapper-arch/repos (4 files)

2019-11-25 Thread Jan Steffens via arch-commits
Date: Tuesday, November 26, 2019 @ 00:14:03
  Author: heftig
Revision: 533328

archrelease: copy trunk to community-staging-x86_64

Added:
  ndiswrapper-arch/repos/community-staging-x86_64/
  ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD
(from rev 533323, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/kernel-5.3.patch
(from rev 533323, ndiswrapper-arch/trunk/kernel-5.3.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/kernel-5.4.patch
(from rev 533323, ndiswrapper-arch/trunk/kernel-5.4.patch)

--+
 PKGBUILD |   40 ++
 kernel-5.3.patch |   69 +
 kernel-5.4.patch |   22 
 3 files changed, 131 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
533323, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-11-26 00:14:03 UTC (rev 533328)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=7
+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;
+'kernel-5.3.patch' 'kernel-5.4.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p2 -i "$srcdir"/kernel-5.3.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.4.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);
+   }

Copied: ndiswrapper-arch/repos/community-staging-x86_64/kernel-5.4.patch (from 
rev 533323, ndiswrapper-arch/trunk/kernel-5.4.patch)
===
--- community-staging-x86_64/kernel-5.4.patch   (rev 0)
+++ community-staging-x86_64/kernel-5.4.patch   2019-11-26 00:14:03 UTC (rev 
533328)
@@ -0,0 +1,22 @@
+diff -u -r ndiswrapper-1.62/driver/wrapndis.c 
ndiswrapper-1.62-5.4/driver/wrapndis.c
+--- ndiswrapper-1.62/driver/wrapndis.c 2019-02-11 04:11:14.0 +
 ndiswrapper-1.62-5.4/driver/wrapndis.c 2019-11-26 00:02:39.035464963