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

2020-07-31 Thread Jan Steffens via arch-commits
Date: Friday, July 31, 2020 @ 18:39:02
  Author: heftig
Revision: 666296

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

--+
 PKGBUILD |   45 
 kernel-5.3.patch |   69 +++
 kernel-5.4.patch |   22 +
 kernel-5.5.patch |   72 
 kernel-5.6.patch |   85 +
 5 files changed, 293 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
666293, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-07-31 18:39:02 UTC (rev 666296)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=75
+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' 'kernel-5.5.patch' 
'kernel-5.6.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429'
+
'ed543cbfb236de0a20e1f164c22c83cd19aec416b5f50a58cee731857231c667d166c36814047174bddda36261af71e92ecdb2944e5b818a603085af279fbd89'
+
'f37efd16a32c4a36607d43ccda0979a914521157e2095db4c331315638f24d440d8628ea7e98c96f92155e1df133478f0ce9eb76152e963eca4a3fecafbca155')
+
+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
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.5.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.6.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 

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

2020-07-29 Thread Jan Steffens via arch-commits
Date: Wednesday, July 29, 2020 @ 22:39:13
  Author: heftig
Revision: 665837

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 665829, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.3.patch
(from rev 665829, ndiswrapper-arch/trunk/kernel-5.3.patch)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 665830, ndiswrapper-arch/trunk/kernel-5.4.patch)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.5.patch
(from rev 665831, ndiswrapper-arch/trunk/kernel-5.5.patch)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.6.patch
(from rev 665833, ndiswrapper-arch/trunk/kernel-5.6.patch)

--+
 PKGBUILD |   45 
 kernel-5.3.patch |   69 +++
 kernel-5.4.patch |   22 +
 kernel-5.5.patch |   72 
 kernel-5.6.patch |   85 +
 5 files changed, 293 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
665829, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-07-29 22:39:13 UTC (rev 665837)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=74
+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' 'kernel-5.5.patch' 
'kernel-5.6.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429'
+
'ed543cbfb236de0a20e1f164c22c83cd19aec416b5f50a58cee731857231c667d166c36814047174bddda36261af71e92ecdb2944e5b818a603085af279fbd89'
+
'f37efd16a32c4a36607d43ccda0979a914521157e2095db4c331315638f24d440d8628ea7e98c96f92155e1df133478f0ce9eb76152e963eca4a3fecafbca155')
+
+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
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.5.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.6.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 

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

2020-07-22 Thread Jan Steffens via arch-commits
Date: Wednesday, July 22, 2020 @ 21:30:34
  Author: heftig
Revision: 664935

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 664929, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.3.patch
(from rev 664929, ndiswrapper-arch/trunk/kernel-5.3.patch)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 664930, ndiswrapper-arch/trunk/kernel-5.4.patch)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.5.patch
(from rev 664931, ndiswrapper-arch/trunk/kernel-5.5.patch)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.6.patch
(from rev 664932, ndiswrapper-arch/trunk/kernel-5.6.patch)

--+
 PKGBUILD |   45 
 kernel-5.3.patch |   69 +++
 kernel-5.4.patch |   22 +
 kernel-5.5.patch |   72 
 kernel-5.6.patch |   85 +
 5 files changed, 293 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
664929, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-07-22 21:30:34 UTC (rev 664935)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=73
+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' 'kernel-5.5.patch' 
'kernel-5.6.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429'
+
'ed543cbfb236de0a20e1f164c22c83cd19aec416b5f50a58cee731857231c667d166c36814047174bddda36261af71e92ecdb2944e5b818a603085af279fbd89'
+
'f37efd16a32c4a36607d43ccda0979a914521157e2095db4c331315638f24d440d8628ea7e98c96f92155e1df133478f0ce9eb76152e963eca4a3fecafbca155')
+
+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
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.5.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.6.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 

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

2020-07-16 Thread Jan Steffens via arch-commits
Date: Thursday, July 16, 2020 @ 21:07:25
  Author: heftig
Revision: 664206

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 664198, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.3.patch
(from rev 664199, ndiswrapper-arch/trunk/kernel-5.3.patch)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 664201, ndiswrapper-arch/trunk/kernel-5.4.patch)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.5.patch
(from rev 664203, ndiswrapper-arch/trunk/kernel-5.5.patch)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.6.patch
(from rev 664205, ndiswrapper-arch/trunk/kernel-5.6.patch)

--+
 PKGBUILD |   45 
 kernel-5.3.patch |   69 +++
 kernel-5.4.patch |   22 +
 kernel-5.5.patch |   72 
 kernel-5.6.patch |   85 +
 5 files changed, 293 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
664198, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-07-16 21:07:25 UTC (rev 664206)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=72
+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' 'kernel-5.5.patch' 
'kernel-5.6.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429'
+
'ed543cbfb236de0a20e1f164c22c83cd19aec416b5f50a58cee731857231c667d166c36814047174bddda36261af71e92ecdb2944e5b818a603085af279fbd89'
+
'f37efd16a32c4a36607d43ccda0979a914521157e2095db4c331315638f24d440d8628ea7e98c96f92155e1df133478f0ce9eb76152e963eca4a3fecafbca155')
+
+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
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.5.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.6.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 

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

2020-07-09 Thread Jan Steffens via arch-commits
Date: Thursday, July 9, 2020 @ 23:22:25
  Author: heftig
Revision: 663046

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 663040, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/kernel-5.3.patch
(from rev 663040, ndiswrapper-arch/trunk/kernel-5.3.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/kernel-5.4.patch
(from rev 663040, ndiswrapper-arch/trunk/kernel-5.4.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/kernel-5.5.patch
(from rev 663041, ndiswrapper-arch/trunk/kernel-5.5.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/kernel-5.6.patch
(from rev 663042, ndiswrapper-arch/trunk/kernel-5.6.patch)

--+
 PKGBUILD |   45 
 kernel-5.3.patch |   69 +++
 kernel-5.4.patch |   22 +
 kernel-5.5.patch |   72 
 kernel-5.6.patch |   85 +
 5 files changed, 293 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
663040, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2020-07-09 23:22:25 UTC (rev 663046)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=71
+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' 'kernel-5.5.patch' 
'kernel-5.6.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429'
+
'ed543cbfb236de0a20e1f164c22c83cd19aec416b5f50a58cee731857231c667d166c36814047174bddda36261af71e92ecdb2944e5b818a603085af279fbd89'
+
'f37efd16a32c4a36607d43ccda0979a914521157e2095db4c331315638f24d440d8628ea7e98c96f92155e1df133478f0ce9eb76152e963eca4a3fecafbca155')
+
+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
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.5.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.6.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 

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

2020-07-01 Thread Jan Steffens via arch-commits
Date: Wednesday, July 1, 2020 @ 17:43:55
  Author: heftig
Revision: 657397

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

--+
 PKGBUILD |   45 
 kernel-5.3.patch |   69 +++
 kernel-5.4.patch |   22 +
 kernel-5.5.patch |   72 
 kernel-5.6.patch |   85 +
 5 files changed, 293 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
657392, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-07-01 17:43:55 UTC (rev 657397)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=70
+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' 'kernel-5.5.patch' 
'kernel-5.6.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429'
+
'ed543cbfb236de0a20e1f164c22c83cd19aec416b5f50a58cee731857231c667d166c36814047174bddda36261af71e92ecdb2944e5b818a603085af279fbd89'
+
'f37efd16a32c4a36607d43ccda0979a914521157e2095db4c331315638f24d440d8628ea7e98c96f92155e1df133478f0ce9eb76152e963eca4a3fecafbca155')
+
+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
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.5.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.6.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 

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

2020-06-24 Thread Jan Steffens via arch-commits
Date: Thursday, June 25, 2020 @ 01:14:07
  Author: heftig
Revision: 652681

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

--+
 PKGBUILD |   45 
 kernel-5.3.patch |   69 +++
 kernel-5.4.patch |   22 +
 kernel-5.5.patch |   72 
 kernel-5.6.patch |   85 +
 5 files changed, 293 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
652677, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-06-25 01:14:07 UTC (rev 652681)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=69
+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' 'kernel-5.5.patch' 
'kernel-5.6.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429'
+
'ed543cbfb236de0a20e1f164c22c83cd19aec416b5f50a58cee731857231c667d166c36814047174bddda36261af71e92ecdb2944e5b818a603085af279fbd89'
+
'f37efd16a32c4a36607d43ccda0979a914521157e2095db4c331315638f24d440d8628ea7e98c96f92155e1df133478f0ce9eb76152e963eca4a3fecafbca155')
+
+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
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.5.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.6.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 

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

2020-06-22 Thread Jan Steffens via arch-commits
Date: Monday, June 22, 2020 @ 10:01:19
  Author: heftig
Revision: 650373

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 650368, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.3.patch
(from rev 650369, ndiswrapper-arch/trunk/kernel-5.3.patch)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 650370, ndiswrapper-arch/trunk/kernel-5.4.patch)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.5.patch
(from rev 650370, ndiswrapper-arch/trunk/kernel-5.5.patch)
  ndiswrapper-arch/repos/community-testing-x86_64/kernel-5.6.patch
(from rev 650371, ndiswrapper-arch/trunk/kernel-5.6.patch)

--+
 PKGBUILD |   45 
 kernel-5.3.patch |   69 +++
 kernel-5.4.patch |   22 +
 kernel-5.5.patch |   72 
 kernel-5.6.patch |   85 +
 5 files changed, 293 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
650368, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-06-22 10:01:19 UTC (rev 650373)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=68
+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' 'kernel-5.5.patch' 
'kernel-5.6.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429'
+
'ed543cbfb236de0a20e1f164c22c83cd19aec416b5f50a58cee731857231c667d166c36814047174bddda36261af71e92ecdb2944e5b818a603085af279fbd89'
+
'f37efd16a32c4a36607d43ccda0979a914521157e2095db4c331315638f24d440d8628ea7e98c96f92155e1df133478f0ce9eb76152e963eca4a3fecafbca155')
+
+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
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.5.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.6.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 

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

2020-06-18 Thread Jan Steffens via arch-commits
Date: Thursday, June 18, 2020 @ 17:21:15
  Author: heftig
Revision: 647386

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

--+
 PKGBUILD |   45 
 kernel-5.3.patch |   69 +++
 kernel-5.4.patch |   22 +
 kernel-5.5.patch |   72 
 kernel-5.6.patch |   85 +
 5 files changed, 293 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
647381, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-06-18 17:21:15 UTC (rev 647386)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=67
+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' 'kernel-5.5.patch' 
'kernel-5.6.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429'
+
'ed543cbfb236de0a20e1f164c22c83cd19aec416b5f50a58cee731857231c667d166c36814047174bddda36261af71e92ecdb2944e5b818a603085af279fbd89'
+
'f37efd16a32c4a36607d43ccda0979a914521157e2095db4c331315638f24d440d8628ea7e98c96f92155e1df133478f0ce9eb76152e963eca4a3fecafbca155')
+
+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
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.5.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.6.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 

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

2020-06-17 Thread Jan Steffens via arch-commits
Date: Wednesday, June 17, 2020 @ 23:04:58
  Author: heftig
Revision: 646724

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

--+
 PKGBUILD |   45 
 kernel-5.3.patch |   69 +++
 kernel-5.4.patch |   22 +
 kernel-5.5.patch |   72 
 kernel-5.6.patch |   85 +
 5 files changed, 293 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
646716, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-06-17 23:04:58 UTC (rev 646724)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=66
+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' 'kernel-5.5.patch' 
'kernel-5.6.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429'
+
'ed543cbfb236de0a20e1f164c22c83cd19aec416b5f50a58cee731857231c667d166c36814047174bddda36261af71e92ecdb2944e5b818a603085af279fbd89'
+
'f37efd16a32c4a36607d43ccda0979a914521157e2095db4c331315638f24d440d8628ea7e98c96f92155e1df133478f0ce9eb76152e963eca4a3fecafbca155')
+
+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
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.5.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.6.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 

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

2020-06-01 Thread Jan Steffens via arch-commits
Date: Tuesday, June 2, 2020 @ 01:26:48
  Author: heftig
Revision: 637941

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

--+
 PKGBUILD |   44 +++
 kernel-5.3.patch |   69 +++
 kernel-5.4.patch |   22 +
 kernel-5.5.patch |   72 
 kernel-5.6.patch |   85 +
 5 files changed, 292 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
637934, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-06-02 01:26:48 UTC (rev 637941)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=63
+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' 'kernel-5.5.patch' 
'kernel-5.6.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429'
+
'ed543cbfb236de0a20e1f164c22c83cd19aec416b5f50a58cee731857231c667d166c36814047174bddda36261af71e92ecdb2944e5b818a603085af279fbd89'
+
'f37efd16a32c4a36607d43ccda0979a914521157e2095db4c331315638f24d440d8628ea7e98c96f92155e1df133478f0ce9eb76152e963eca4a3fecafbca155')
+
+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
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.5.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.6.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 

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

2020-05-27 Thread Jan Steffens via arch-commits
Date: Thursday, May 28, 2020 @ 00:31:32
  Author: heftig
Revision: 636125

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

--+
 PKGBUILD |   44 +++
 kernel-5.3.patch |   69 +++
 kernel-5.4.patch |   22 +
 kernel-5.5.patch |   72 
 kernel-5.6.patch |   85 +
 5 files changed, 292 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
636118, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-05-28 00:31:32 UTC (rev 636125)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=62
+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' 'kernel-5.5.patch' 
'kernel-5.6.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429'
+
'ed543cbfb236de0a20e1f164c22c83cd19aec416b5f50a58cee731857231c667d166c36814047174bddda36261af71e92ecdb2944e5b818a603085af279fbd89'
+
'f37efd16a32c4a36607d43ccda0979a914521157e2095db4c331315638f24d440d8628ea7e98c96f92155e1df133478f0ce9eb76152e963eca4a3fecafbca155')
+
+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
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.5.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.6.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 

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

2020-05-20 Thread Jan Steffens via arch-commits
Date: Wednesday, May 20, 2020 @ 23:01:16
  Author: heftig
Revision: 631027

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

--+
 PKGBUILD |   44 +++
 kernel-5.3.patch |   69 +++
 kernel-5.4.patch |   22 +
 kernel-5.5.patch |   72 
 kernel-5.6.patch |   85 +
 5 files changed, 292 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
631019, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-05-20 23:01:16 UTC (rev 631027)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=61
+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' 'kernel-5.5.patch' 
'kernel-5.6.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429'
+
'ed543cbfb236de0a20e1f164c22c83cd19aec416b5f50a58cee731857231c667d166c36814047174bddda36261af71e92ecdb2944e5b818a603085af279fbd89'
+
'f37efd16a32c4a36607d43ccda0979a914521157e2095db4c331315638f24d440d8628ea7e98c96f92155e1df133478f0ce9eb76152e963eca4a3fecafbca155')
+
+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
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.5.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.6.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 

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

2020-05-14 Thread Jan Steffens via arch-commits
Date: Thursday, May 14, 2020 @ 07:45:15
  Author: heftig
Revision: 627886

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

--+
 PKGBUILD |   44 +++
 kernel-5.3.patch |   69 +++
 kernel-5.4.patch |   22 +
 kernel-5.5.patch |   72 
 kernel-5.6.patch |   85 +
 5 files changed, 292 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
627883, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-05-14 07:45:15 UTC (rev 627886)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=60
+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' 'kernel-5.5.patch' 
'kernel-5.6.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429'
+
'ed543cbfb236de0a20e1f164c22c83cd19aec416b5f50a58cee731857231c667d166c36814047174bddda36261af71e92ecdb2944e5b818a603085af279fbd89'
+
'f37efd16a32c4a36607d43ccda0979a914521157e2095db4c331315638f24d440d8628ea7e98c96f92155e1df133478f0ce9eb76152e963eca4a3fecafbca155')
+
+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
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.5.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.6.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 

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

2020-05-08 Thread Jan Steffens via arch-commits
Date: Friday, May 8, 2020 @ 21:40:26
  Author: heftig
Revision: 625805

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

--+
 PKGBUILD |   44 +++
 kernel-5.3.patch |   69 +++
 kernel-5.4.patch |   22 +
 kernel-5.5.patch |   72 
 kernel-5.6.patch |   85 +
 5 files changed, 292 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
625796, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2020-05-08 21:40:26 UTC (rev 625805)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=57
+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' 'kernel-5.5.patch' 
'kernel-5.6.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429'
+
'ed543cbfb236de0a20e1f164c22c83cd19aec416b5f50a58cee731857231c667d166c36814047174bddda36261af71e92ecdb2944e5b818a603085af279fbd89'
+
'f37efd16a32c4a36607d43ccda0979a914521157e2095db4c331315638f24d440d8628ea7e98c96f92155e1df133478f0ce9eb76152e963eca4a3fecafbca155')
+
+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
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.5.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.6.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 

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

2020-05-06 Thread Jan Steffens via arch-commits
Date: Wednesday, May 6, 2020 @ 19:48:32
  Author: heftig
Revision: 625183

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

--+
 PKGBUILD |   44 +++
 kernel-5.3.patch |   69 +++
 kernel-5.4.patch |   22 +
 kernel-5.5.patch |   72 
 kernel-5.6.patch |   85 +
 5 files changed, 292 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
625177, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-05-06 19:48:32 UTC (rev 625183)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=56
+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' 'kernel-5.5.patch' 
'kernel-5.6.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429'
+
'ed543cbfb236de0a20e1f164c22c83cd19aec416b5f50a58cee731857231c667d166c36814047174bddda36261af71e92ecdb2944e5b818a603085af279fbd89'
+
'f37efd16a32c4a36607d43ccda0979a914521157e2095db4c331315638f24d440d8628ea7e98c96f92155e1df133478f0ce9eb76152e963eca4a3fecafbca155')
+
+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
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.5.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.6.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 

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

2020-05-02 Thread Jan Steffens via arch-commits
Date: Saturday, May 2, 2020 @ 13:13:39
  Author: heftig
Revision: 624374

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

--+
 PKGBUILD |   44 +++
 kernel-5.3.patch |   69 +++
 kernel-5.4.patch |   22 +
 kernel-5.5.patch |   72 
 kernel-5.6.patch |   85 +
 5 files changed, 292 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
624369, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-05-02 13:13:39 UTC (rev 624374)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=54
+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' 'kernel-5.5.patch' 
'kernel-5.6.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429'
+
'ed543cbfb236de0a20e1f164c22c83cd19aec416b5f50a58cee731857231c667d166c36814047174bddda36261af71e92ecdb2944e5b818a603085af279fbd89'
+
'f37efd16a32c4a36607d43ccda0979a914521157e2095db4c331315638f24d440d8628ea7e98c96f92155e1df133478f0ce9eb76152e963eca4a3fecafbca155')
+
+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
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.5.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.6.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 

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

2020-04-29 Thread Jan Steffens via arch-commits
Date: Wednesday, April 29, 2020 @ 17:52:07
  Author: heftig
Revision: 622302

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

--+
 PKGBUILD |   44 +++
 kernel-5.3.patch |   69 +++
 kernel-5.4.patch |   22 +
 kernel-5.5.patch |   72 
 kernel-5.6.patch |   85 +
 5 files changed, 292 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
622292, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-04-29 17:52:07 UTC (rev 622302)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=53
+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' 'kernel-5.5.patch' 
'kernel-5.6.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429'
+
'ed543cbfb236de0a20e1f164c22c83cd19aec416b5f50a58cee731857231c667d166c36814047174bddda36261af71e92ecdb2944e5b818a603085af279fbd89'
+
'f37efd16a32c4a36607d43ccda0979a914521157e2095db4c331315638f24d440d8628ea7e98c96f92155e1df133478f0ce9eb76152e963eca4a3fecafbca155')
+
+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
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.5.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.6.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 

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

2020-04-23 Thread Jan Steffens via arch-commits
Date: Thursday, April 23, 2020 @ 10:39:59
  Author: heftig
Revision: 617956

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

--+
 PKGBUILD |   44 +++
 kernel-5.3.patch |   69 +++
 kernel-5.4.patch |   22 +
 kernel-5.5.patch |   72 
 kernel-5.6.patch |   85 +
 5 files changed, 292 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
617950, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-04-23 10:39:59 UTC (rev 617956)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=52
+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' 'kernel-5.5.patch' 
'kernel-5.6.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429'
+
'ed543cbfb236de0a20e1f164c22c83cd19aec416b5f50a58cee731857231c667d166c36814047174bddda36261af71e92ecdb2944e5b818a603085af279fbd89'
+
'f37efd16a32c4a36607d43ccda0979a914521157e2095db4c331315638f24d440d8628ea7e98c96f92155e1df133478f0ce9eb76152e963eca4a3fecafbca155')
+
+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
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.5.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.6.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 

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

2020-04-21 Thread Jan Steffens via arch-commits
Date: Tuesday, April 21, 2020 @ 11:50:06
  Author: heftig
Revision: 617351

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

--+
 PKGBUILD |   44 +++
 kernel-5.3.patch |   69 +++
 kernel-5.4.patch |   22 +
 kernel-5.5.patch |   72 
 kernel-5.6.patch |   85 +
 5 files changed, 292 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
617345, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-04-21 11:50:06 UTC (rev 617351)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=51
+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' 'kernel-5.5.patch' 
'kernel-5.6.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429'
+
'ed543cbfb236de0a20e1f164c22c83cd19aec416b5f50a58cee731857231c667d166c36814047174bddda36261af71e92ecdb2944e5b818a603085af279fbd89'
+
'f37efd16a32c4a36607d43ccda0979a914521157e2095db4c331315638f24d440d8628ea7e98c96f92155e1df133478f0ce9eb76152e963eca4a3fecafbca155')
+
+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
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.5.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.6.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 

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

2020-04-17 Thread Jan Steffens via arch-commits
Date: Friday, April 17, 2020 @ 21:48:44
  Author: heftig
Revision: 616008

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

--+
 PKGBUILD |   44 +++
 kernel-5.3.patch |   69 +++
 kernel-5.4.patch |   22 +
 kernel-5.5.patch |   72 
 kernel-5.6.patch |   85 +
 5 files changed, 292 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
616001, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-04-17 21:48:44 UTC (rev 616008)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=48
+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' 'kernel-5.5.patch' 
'kernel-5.6.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429'
+
'ed543cbfb236de0a20e1f164c22c83cd19aec416b5f50a58cee731857231c667d166c36814047174bddda36261af71e92ecdb2944e5b818a603085af279fbd89'
+
'f37efd16a32c4a36607d43ccda0979a914521157e2095db4c331315638f24d440d8628ea7e98c96f92155e1df133478f0ce9eb76152e963eca4a3fecafbca155')
+
+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
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.5.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.6.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 

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

2020-04-13 Thread Jan Steffens via arch-commits
Date: Monday, April 13, 2020 @ 13:21:47
  Author: heftig
Revision: 613659

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

--+
 PKGBUILD |   44 +++
 kernel-5.3.patch |   69 +++
 kernel-5.4.patch |   22 +
 kernel-5.5.patch |   72 
 kernel-5.6.patch |   85 +
 5 files changed, 292 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
613653, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-04-13 13:21:47 UTC (rev 613659)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=47
+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' 'kernel-5.5.patch' 
'kernel-5.6.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429'
+
'ed543cbfb236de0a20e1f164c22c83cd19aec416b5f50a58cee731857231c667d166c36814047174bddda36261af71e92ecdb2944e5b818a603085af279fbd89'
+
'f37efd16a32c4a36607d43ccda0979a914521157e2095db4c331315638f24d440d8628ea7e98c96f92155e1df133478f0ce9eb76152e963eca4a3fecafbca155')
+
+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
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.5.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.6.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 

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

2020-04-08 Thread Jan Steffens via arch-commits
Date: Wednesday, April 8, 2020 @ 08:55:00
  Author: heftig
Revision: 612584

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

--+
 PKGBUILD |   44 +++
 kernel-5.3.patch |   69 +++
 kernel-5.4.patch |   22 +
 kernel-5.5.patch |   72 
 kernel-5.6.patch |   85 +
 5 files changed, 292 insertions(+)

Copied: ndiswrapper-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
612580, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-04-08 08:55:00 UTC (rev 612584)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=46
+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' 'kernel-5.5.patch' 
'kernel-5.6.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429'
+
'ed543cbfb236de0a20e1f164c22c83cd19aec416b5f50a58cee731857231c667d166c36814047174bddda36261af71e92ecdb2944e5b818a603085af279fbd89'
+
'f37efd16a32c4a36607d43ccda0979a914521157e2095db4c331315638f24d440d8628ea7e98c96f92155e1df133478f0ce9eb76152e963eca4a3fecafbca155')
+
+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
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.5.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.6.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 

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

2020-04-03 Thread Christian Hesse via arch-commits
Date: Friday, April 3, 2020 @ 20:15:17
  Author: eworm
Revision: 611210

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

--+
 PKGBUILD |   44 +++
 kernel-5.3.patch |   69 +++
 kernel-5.4.patch |   22 +
 kernel-5.5.patch |   72 
 kernel-5.6.patch |   85 +
 5 files changed, 292 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
611209, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2020-04-03 20:15:17 UTC (rev 611210)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.62
+pkgrel=43
+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' 'kernel-5.5.patch' 
'kernel-5.6.patch')
+sha512sums=('a6e111bc699572642e44d6d31cc2f06374648a01b8dd7dd4e74d6ad5e187e39f99faee38f792c83a94d4618ae4d8866914fb3f60b1d80e838a753285ea7cf783'
+
'c404f35280534b172235c5c578657d7a30ac2253c7c2abedd65a183d09390e95e7c3030cb409accb4d198ff0411482f8029f8664418c99d5672f92e9c733801d'
+
'36450042db79ed4545030276bff9db1bc9895259f38c1c0bf4dc238ad76ec61c2e08d437997dafd327f2a8fd1694d61e418941555e92144e3ec86c8066561429'
+
'ed543cbfb236de0a20e1f164c22c83cd19aec416b5f50a58cee731857231c667d166c36814047174bddda36261af71e92ecdb2944e5b818a603085af279fbd89'
+
'f37efd16a32c4a36607d43ccda0979a914521157e2095db4c331315638f24d440d8628ea7e98c96f92155e1df133478f0ce9eb76152e963eca4a3fecafbca155')
+
+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
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.5.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/kernel-5.6.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 

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

2019-09-12 Thread Jan Steffens via arch-commits
Date: Thursday, September 12, 2019 @ 13:07:16
  Author: heftig
Revision: 509548

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 509543, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 509543, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 509543, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 509543, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 509543, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
509543, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-09-12 13:07:16 UTC (rev 509548)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=61
+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')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 509543, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-09-12 13:07:16 UTC (rev 
509548)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+ 

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

2019-09-10 Thread Jan Steffens via arch-commits
Date: Tuesday, September 10, 2019 @ 19:19:31
  Author: heftig
Revision: 509205

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 509197, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 509197, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 509199, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 509200, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 509203, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
509197, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-09-10 19:19:31 UTC (rev 509205)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=60
+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')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 509197, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-09-10 19:19:31 UTC (rev 
509205)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+  

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

2019-09-06 Thread Jan Steffens via arch-commits
Date: Saturday, September 7, 2019 @ 04:44:48
  Author: heftig
Revision: 508332

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 508328, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 508329, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 508330, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 508330, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 508330, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
508328, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-09-07 04:44:48 UTC (rev 508332)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=59
+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')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 508329, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-09-07 04:44:48 UTC (rev 
508332)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+  

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

2019-08-29 Thread Jan Steffens via arch-commits
Date: Thursday, August 29, 2019 @ 22:26:45
  Author: heftig
Revision: 505061

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 505057, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 505057, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 505057, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 505057, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 505057, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
505057, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-08-29 22:26:45 UTC (rev 505061)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=58
+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')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 505057, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-08-29 22:26:45 UTC (rev 
505061)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+

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

2019-08-25 Thread Jan Steffens via arch-commits
Date: Sunday, August 25, 2019 @ 19:01:38
  Author: heftig
Revision: 501740

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 501732, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 501732, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 501732, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 501733, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 501734, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
501732, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-08-25 19:01:38 UTC (rev 501740)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=57
+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')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 501732, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-08-25 19:01:38 UTC (rev 
501740)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+  

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

2019-08-16 Thread Jan Steffens via arch-commits
Date: Friday, August 16, 2019 @ 13:24:23
  Author: heftig
Revision: 499856

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 499848, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 499848, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 499848, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 499848, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 499849, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
499848, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-08-16 13:24:23 UTC (rev 499856)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=56
+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')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 499848, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-08-16 13:24:23 UTC (rev 
499856)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+  

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

2019-08-09 Thread Jan Steffens via arch-commits
Date: Friday, August 9, 2019 @ 22:24:49
  Author: heftig
Revision: 498588

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 498581, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 498582, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 498582, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 498583, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 498584, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
498581, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-08-09 22:24:49 UTC (rev 498588)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=55
+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')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 498582, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-08-09 22:24:49 UTC (rev 
498588)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+   

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

2019-08-07 Thread Jan Steffens via arch-commits
Date: Wednesday, August 7, 2019 @ 22:02:26
  Author: heftig
Revision: 498279

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 498272, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 498272, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 498272, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 498274, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 498274, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
498272, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-08-07 22:02:26 UTC (rev 498279)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=54
+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')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 498272, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-08-07 22:02:26 UTC (rev 
498279)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+

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

2019-08-04 Thread Jan Steffens via arch-commits
Date: Sunday, August 4, 2019 @ 21:54:05
  Author: heftig
Revision: 497396

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 497391, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 497392, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 497392, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 497393, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 497393, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
497391, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-08-04 21:54:05 UTC (rev 497396)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=53
+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')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 497392, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-08-04 21:54:05 UTC (rev 
497396)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+   

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

2019-07-31 Thread Jan Steffens via arch-commits
Date: Wednesday, July 31, 2019 @ 09:49:53
  Author: heftig
Revision: 495500

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 495494, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 495494, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 495494, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 495494, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 495495, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
495494, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-07-31 09:49:53 UTC (rev 495500)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=52
+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')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 495494, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-07-31 09:49:53 UTC (rev 
495500)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+ 

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

2019-07-28 Thread Jan Steffens via arch-commits
Date: Sunday, July 28, 2019 @ 13:17:46
  Author: heftig
Revision: 493647

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 493639, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 493639, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 493639, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 493640, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 493642, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
493639, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-07-28 13:17:46 UTC (rev 493647)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=51
+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')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 493639, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-07-28 13:17:46 UTC (rev 
493647)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+

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

2019-07-26 Thread Jan Steffens via arch-commits
Date: Friday, July 26, 2019 @ 09:10:23
  Author: heftig
Revision: 492835

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 492829, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 492829, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 492830, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 492830, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 492830, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
492829, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-07-26 09:10:23 UTC (rev 492835)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=50
+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')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 492829, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-07-26 09:10:23 UTC (rev 
492835)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+

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

2019-07-21 Thread Jan Steffens via arch-commits
Date: Sunday, July 21, 2019 @ 20:58:23
  Author: heftig
Revision: 492518

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 492510, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 492511, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 492511, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 492511, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 492512, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
492510, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-07-21 20:58:23 UTC (rev 492518)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=49
+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')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 492511, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-07-21 20:58:23 UTC (rev 
492518)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+

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

2019-07-14 Thread Jan Steffens via arch-commits
Date: Sunday, July 14, 2019 @ 22:15:58
  Author: heftig
Revision: 489560

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 489552, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 489552, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 489552, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 489552, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 489552, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
489552, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-07-14 22:15:58 UTC (rev 489560)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=48
+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')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 489552, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-07-14 22:15:58 UTC (rev 
489560)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+

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

2019-07-08 Thread Jan Steffens via arch-commits
Date: Tuesday, July 9, 2019 @ 04:37:38
  Author: heftig
Revision: 487752

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 487746, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 487746, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 487747, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 487747, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 487748, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
487746, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-07-09 04:37:38 UTC (rev 487752)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=47
+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')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 487746, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-07-09 04:37:38 UTC (rev 
487752)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+

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

2019-07-03 Thread Jan Steffens via arch-commits
Date: Wednesday, July 3, 2019 @ 21:33:25
  Author: heftig
Revision: 487400

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 487391, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 487391, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 487392, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 487395, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 487396, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
487391, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-07-03 21:33:25 UTC (rev 487400)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=46
+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')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 487391, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-07-03 21:33:25 UTC (rev 
487400)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+  

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

2019-06-25 Thread Jan Steffens via arch-commits
Date: Tuesday, June 25, 2019 @ 08:01:22
  Author: heftig
Revision: 483897

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 483893, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 483893, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 483893, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 483893, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 483894, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
483893, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-06-25 08:01:22 UTC (rev 483897)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=45
+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')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 483893, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-06-25 08:01:22 UTC (rev 
483897)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+   

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

2019-06-22 Thread Jan Steffens via arch-commits
Date: Saturday, June 22, 2019 @ 21:17:33
  Author: heftig
Revision: 482799

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 482794, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 482794, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 482794, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 482794, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 482794, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
482794, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-06-22 21:17:33 UTC (rev 482799)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=44
+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')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 482794, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-06-22 21:17:33 UTC (rev 
482799)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+  

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

2019-06-19 Thread Jan Steffens via arch-commits
Date: Wednesday, June 19, 2019 @ 12:48:12
  Author: heftig
Revision: 482375

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 482371, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 482371, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 482371, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 482371, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 482372, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
482371, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-06-19 12:48:12 UTC (rev 482375)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=43
+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')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 482371, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-06-19 12:48:12 UTC (rev 
482375)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+ 

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

2019-06-17 Thread Jan Steffens via arch-commits
Date: Tuesday, June 18, 2019 @ 04:25:39
  Author: heftig
Revision: 482082

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 482075, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 482075, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 482075, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 482075, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 482075, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
482075, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-06-18 04:25:39 UTC (rev 482082)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=42
+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')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 482075, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-06-18 04:25:39 UTC (rev 
482082)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+   

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

2019-06-15 Thread Jan Steffens via arch-commits
Date: Sunday, June 16, 2019 @ 00:51:10
  Author: heftig
Revision: 481785

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 481777, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 481777, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 481777, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 481778, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 481778, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
481777, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-06-16 00:51:10 UTC (rev 481785)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=41
+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')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 481777, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-06-16 00:51:10 UTC (rev 
481785)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+

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

2019-06-11 Thread Jan Steffens via arch-commits
Date: Tuesday, June 11, 2019 @ 21:08:29
  Author: heftig
Revision: 480549

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 480541, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 480541, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 480541, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 480541, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 480542, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
480541, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-06-11 21:08:29 UTC (rev 480549)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=40
+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')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 480541, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-06-11 21:08:29 UTC (rev 
480549)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+   

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

2019-06-09 Thread Jan Steffens via arch-commits
Date: Sunday, June 9, 2019 @ 21:58:34
  Author: heftig
Revision: 479189

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 479183, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 479183, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 479183, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 479183, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 479183, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
479183, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-06-09 21:58:34 UTC (rev 479189)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=39
+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')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 479183, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-06-09 21:58:34 UTC (rev 
479189)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+ 

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

2019-06-04 Thread Jan Steffens via arch-commits
Date: Tuesday, June 4, 2019 @ 18:23:55
  Author: heftig
Revision: 476871

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 476863, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 476864, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 476864, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 476864, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 476864, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
476863, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-06-04 18:23:55 UTC (rev 476871)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=38
+pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by 
vendors, kernel module for Arch kernel"
+arch=('x86_64')
+url="http://sourceforge.net/projects/ndiswrapper/;
+license=('GPL')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 476864, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-06-04 18:23:55 UTC (rev 
476871)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+ 

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

2019-05-31 Thread Jan Steffens via arch-commits
Date: Saturday, June 1, 2019 @ 03:54:00
  Author: heftig
Revision: 476220

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 476216, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 476216, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 476216, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 476216, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 476217, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
476216, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-06-01 03:54:00 UTC (rev 476220)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=37
+pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by 
vendors, kernel module for Arch kernel"
+arch=('x86_64')
+url="http://sourceforge.net/projects/ndiswrapper/;
+license=('GPL')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 476216, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-06-01 03:54:00 UTC (rev 
476220)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+

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

2019-05-26 Thread Jan Steffens via arch-commits
Date: Monday, May 27, 2019 @ 05:05:52
  Author: heftig
Revision: 470948

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 470940, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 470941, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 470941, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 470941, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 470942, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
470940, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-05-27 05:05:52 UTC (rev 470948)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=36
+pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by 
vendors, kernel module for Arch kernel"
+arch=('x86_64')
+url="http://sourceforge.net/projects/ndiswrapper/;
+license=('GPL')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 470941, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-05-27 05:05:52 UTC (rev 
470948)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+  

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

2019-05-25 Thread Jan Steffens via arch-commits
Date: Saturday, May 25, 2019 @ 22:00:11
  Author: heftig
Revision: 470795

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 470787, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 470787, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 470787, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 470788, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 470788, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
470787, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-05-25 22:00:11 UTC (rev 470795)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=35
+pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by 
vendors, kernel module for Arch kernel"
+arch=('x86_64')
+url="http://sourceforge.net/projects/ndiswrapper/;
+license=('GPL')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 470787, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-05-25 22:00:11 UTC (rev 
470795)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+

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

2019-05-22 Thread Jan Steffens via arch-commits
Date: Wednesday, May 22, 2019 @ 14:36:15
  Author: heftig
Revision: 468470

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 468465, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 468465, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 468465, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 468465, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 468465, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
468465, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-05-22 14:36:15 UTC (rev 468470)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=34
+pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by 
vendors, kernel module for Arch kernel"
+arch=('x86_64')
+url="http://sourceforge.net/projects/ndiswrapper/;
+license=('GPL')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 468465, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-05-22 14:36:15 UTC (rev 
468470)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+   

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

2019-05-21 Thread Jan Steffens via arch-commits
Date: Wednesday, May 22, 2019 @ 01:04:29
  Author: heftig
Revision: 468265

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 468260, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 468260, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 468260, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 468260, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 468260, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
468260, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-05-22 01:04:29 UTC (rev 468265)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=33
+pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by 
vendors, kernel module for Arch kernel"
+arch=('x86_64')
+url="http://sourceforge.net/projects/ndiswrapper/;
+license=('GPL')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 468260, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-05-22 01:04:29 UTC (rev 
468265)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if (look_ahead_size < packet_size) {
+   

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

2019-05-17 Thread Jan Steffens via arch-commits
Date: Friday, May 17, 2019 @ 07:34:08
  Author: heftig
Revision: 467636

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 467631, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 467632, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 467633, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 467634, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 467635, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
467631, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-05-17 07:34:08 UTC (rev 467636)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=32
+pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by 
vendors, kernel module for Arch kernel"
+arch=('x86_64')
+url="http://sourceforge.net/projects/ndiswrapper/;
+license=('GPL')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper/driver
+  install -Dm644 ndiswrapper.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 467632, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-05-17 07:34:08 UTC (rev 
467636)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if 

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

2019-05-15 Thread Jan Steffens via arch-commits
Date: Wednesday, May 15, 2019 @ 07:10:23
  Author: heftig
Revision: 467276

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 467270, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 467270, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 467270, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 467270, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 467270, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
467270, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-05-15 07:10:23 UTC (rev 467276)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=31
+pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by 
vendors, kernel module for Arch kernel"
+arch=('x86_64')
+url="http://sourceforge.net/projects/ndiswrapper/;
+license=('GPL')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper/driver
+  install -Dm644 ndiswrapper.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 467270, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-05-15 07:10:23 UTC (rev 
467276)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if 

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

2019-05-07 Thread Jan Steffens via arch-commits
Date: Tuesday, May 7, 2019 @ 20:32:23
  Author: heftig
Revision: 462491

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 462485, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 462485, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 462485, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 462486, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 462486, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
462485, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-05-07 20:32:23 UTC (rev 462491)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=29
+pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by 
vendors, kernel module for Arch kernel"
+arch=('x86_64')
+url="http://sourceforge.net/projects/ndiswrapper/;
+license=('GPL')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper/driver
+  install -Dm644 ndiswrapper.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 462485, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-05-07 20:32:23 UTC (rev 
462491)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if 

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

2019-05-05 Thread Jan Steffens via arch-commits
Date: Sunday, May 5, 2019 @ 19:47:13
  Author: heftig
Revision: 460198

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 460190, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 460190, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 460190, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 460190, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 460191, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
460190, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-05-05 19:47:13 UTC (rev 460198)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=28
+pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by 
vendors, kernel module for Arch kernel"
+arch=('x86_64')
+url="http://sourceforge.net/projects/ndiswrapper/;
+license=('GPL')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper/driver
+  install -Dm644 ndiswrapper.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 460190, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-05-05 19:47:13 UTC (rev 
460198)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if 

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

2019-05-04 Thread Jan Steffens via arch-commits
Date: Saturday, May 4, 2019 @ 22:41:36
  Author: heftig
Revision: 459297

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 459290, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 459291, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 459292, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 459294, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 459295, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
459290, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-05-04 22:41:36 UTC (rev 459297)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=27
+pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by 
vendors, kernel module for Arch kernel"
+arch=('x86_64')
+url="http://sourceforge.net/projects/ndiswrapper/;
+license=('GPL')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper/driver
+  install -Dm644 ndiswrapper.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 459291, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-05-04 22:41:36 UTC (rev 
459297)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if 

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

2019-05-04 Thread Jan Steffens via arch-commits
Date: Saturday, May 4, 2019 @ 13:36:48
  Author: heftig
Revision: 458860

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 458852, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 458853, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 458853, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 458853, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 458854, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
458852, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-05-04 13:36:48 UTC (rev 458860)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=26
+pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by 
vendors, kernel module for Arch kernel"
+arch=('x86_64')
+url="http://sourceforge.net/projects/ndiswrapper/;
+license=('GPL')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper/driver
+  install -Dm644 ndiswrapper.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 458853, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-05-04 13:36:48 UTC (rev 
458860)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if 

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

2019-05-02 Thread Jan Steffens via arch-commits
Date: Thursday, May 2, 2019 @ 22:31:14
  Author: heftig
Revision: 457862

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 457853, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 457853, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 457853, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 457854, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 457854, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
457853, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-05-02 22:31:14 UTC (rev 457862)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=25
+pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by 
vendors, kernel module for Arch kernel"
+arch=('x86_64')
+url="http://sourceforge.net/projects/ndiswrapper/;
+license=('GPL')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper/driver
+  install -Dm644 ndiswrapper.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 457853, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-05-02 22:31:14 UTC (rev 
457862)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if 

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

2019-04-27 Thread Jan Steffens via arch-commits
Date: Saturday, April 27, 2019 @ 22:32:35
  Author: heftig
Revision: 454827

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 454823, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 454823, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 454823, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 454823, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 454823, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
454823, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-04-27 22:32:35 UTC (rev 454827)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=24
+pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by 
vendors, kernel module for Arch kernel"
+arch=('x86_64')
+url="http://sourceforge.net/projects/ndiswrapper/;
+license=('GPL')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper/driver
+  install -Dm644 ndiswrapper.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 454823, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-04-27 22:32:35 UTC (rev 
454827)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   

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

2019-04-20 Thread Jan Steffens via arch-commits
Date: Saturday, April 20, 2019 @ 16:49:44
  Author: heftig
Revision: 452118

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 452110, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 452110, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 452110, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 452111, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 452111, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
452110, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-04-20 16:49:44 UTC (rev 452118)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=23
+pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by 
vendors, kernel module for Arch kernel"
+arch=('x86_64')
+url="http://sourceforge.net/projects/ndiswrapper/;
+license=('GPL')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper/driver
+  install -Dm644 ndiswrapper.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 452110, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-04-20 16:49:44 UTC (rev 
452118)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   

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

2019-04-17 Thread Jan Steffens via arch-commits
Date: Wednesday, April 17, 2019 @ 23:16:17
  Author: heftig
Revision: 451945

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 451940, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 451940, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 451940, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 451940, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 451940, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
451940, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-04-17 23:16:17 UTC (rev 451945)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=22
+pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by 
vendors, kernel module for Arch kernel"
+arch=('x86_64')
+url="http://sourceforge.net/projects/ndiswrapper/;
+license=('GPL')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper/driver
+  install -Dm644 ndiswrapper.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 451940, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-04-17 23:16:17 UTC (rev 
451945)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   

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

2019-04-08 Thread Jan Steffens via arch-commits
Date: Monday, April 8, 2019 @ 12:09:51
  Author: heftig
Revision: 450380

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 450372, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 450372, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 450372, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 450372, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 450372, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
450372, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-04-08 12:09:51 UTC (rev 450380)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=21
+pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by 
vendors, kernel module for Arch kernel"
+arch=('x86_64')
+url="http://sourceforge.net/projects/ndiswrapper/;
+license=('GPL')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper/driver
+  install -Dm644 ndiswrapper.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 450372, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-04-08 12:09:51 UTC (rev 
450380)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if 

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

2019-04-03 Thread Jan Steffens via arch-commits
Date: Wednesday, April 3, 2019 @ 18:12:22
  Author: heftig
Revision: 448356

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 448354, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 448354, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 448354, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 448354, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 448354, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
448354, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-04-03 18:12:22 UTC (rev 448356)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=20
+pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by 
vendors, kernel module for Arch kernel"
+arch=('x86_64')
+url="http://sourceforge.net/projects/ndiswrapper/;
+license=('GPL')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper/driver
+  install -Dm644 ndiswrapper.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 448354, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-04-03 18:12:22 UTC (rev 
448356)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   

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

2019-03-28 Thread Jan Steffens via arch-commits
Date: Thursday, March 28, 2019 @ 06:43:29
  Author: heftig
Revision: 445169

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 445163, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 445164, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 445167, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 445167, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 445167, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
445163, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-03-28 06:43:29 UTC (rev 445169)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=19
+pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by 
vendors, kernel module for Arch kernel"
+arch=('x86_64')
+url="http://sourceforge.net/projects/ndiswrapper/;
+license=('GPL')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper/driver
+  install -Dm644 ndiswrapper.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 445164, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-03-28 06:43:29 UTC (rev 
445169)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   

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

2019-03-23 Thread Jan Steffens via arch-commits
Date: Saturday, March 23, 2019 @ 22:45:22
  Author: heftig
Revision: 443269

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 443266, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 443266, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 443266, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 443266, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 443266, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
443266, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-03-23 22:45:22 UTC (rev 443269)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=18
+pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by 
vendors, kernel module for Arch kernel"
+arch=('x86_64')
+url="http://sourceforge.net/projects/ndiswrapper/;
+license=('GPL')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper/driver
+  install -Dm644 ndiswrapper.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 443266, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-03-23 22:45:22 UTC (rev 
443269)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   

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

2019-03-19 Thread Jan Steffens via arch-commits
Date: Tuesday, March 19, 2019 @ 15:37:14
  Author: heftig
Revision: 442734

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 442730, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 442731, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 442732, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 442732, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 442733, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
442730, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-03-19 15:37:14 UTC (rev 442734)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=17
+pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by 
vendors, kernel module for Arch kernel"
+arch=('x86_64')
+url="http://sourceforge.net/projects/ndiswrapper/;
+license=('GPL')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper/driver
+  install -Dm644 ndiswrapper.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 442731, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-03-19 15:37:14 UTC (rev 
442734)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if 

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

2019-03-14 Thread Jan Steffens via arch-commits
Date: Thursday, March 14, 2019 @ 20:23:16
  Author: heftig
Revision: 441084

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 441076, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 441076, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 441076, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 441076, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 441076, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
441076, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-03-14 20:23:16 UTC (rev 441084)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=16
+pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by 
vendors, kernel module for Arch kernel"
+arch=('x86_64')
+url="http://sourceforge.net/projects/ndiswrapper/;
+license=('GPL')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper/driver
+  install -Dm644 ndiswrapper.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 441076, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-03-14 20:23:16 UTC (rev 
441084)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   

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

2019-03-10 Thread Jan Steffens via arch-commits
Date: Sunday, March 10, 2019 @ 12:35:27
  Author: heftig
Revision: 439304

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 439297, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 439299, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 439300, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 439301, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 439302, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
439297, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-03-10 12:35:27 UTC (rev 439304)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=15
+pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by 
vendors, kernel module for Arch kernel"
+arch=('x86_64')
+url="http://sourceforge.net/projects/ndiswrapper/;
+license=('GPL')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper/driver
+  install -Dm644 ndiswrapper.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 439299, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-03-10 12:35:27 UTC (rev 
439304)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if 

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

2019-03-04 Thread Jan Steffens via arch-commits
Date: Monday, March 4, 2019 @ 21:11:20
  Author: heftig
Revision: 437637

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 437633, ndiswrapper-arch/trunk/PKGBUILD)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch
(from rev 437633, ndiswrapper-arch/trunk/linux-4.11.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.13.patch
(from rev 437633, ndiswrapper-arch/trunk/linux-4.13.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-4.15.patch
(from rev 437633, ndiswrapper-arch/trunk/linux-4.15.patch)
  ndiswrapper-arch/repos/community-staging-x86_64/linux-5.0.patch
(from rev 437633, ndiswrapper-arch/trunk/linux-5.0.patch)

--+
 PKGBUILD |   43 +++
 linux-4.11.patch |   55 ++
 linux-4.13.patch |   27 +++
 linux-4.15.patch |  199 +
 linux-5.0.patch  |   25 ++
 5 files changed, 349 insertions(+)

Copied: ndiswrapper-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
437633, ndiswrapper-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-03-04 21:11:20 UTC (rev 437637)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan 
+# Contributor: maz-1 
+
+pkgname=ndiswrapper-arch
+pkgver=1.61
+_extramodules=extramodules-ARCH
+pkgrel=14
+pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by 
vendors, kernel module for Arch kernel"
+arch=('x86_64')
+url="http://sourceforge.net/projects/ndiswrapper/;
+license=('GPL')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('NDISWRAPPER-MODULE')
+replaces=('ndiswrapper-module')
+source=("ndiswrapper-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz;
+'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch' 
'linux-5.0.patch')
+sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
+
'5350308406457658fb31c378d6f3dd2a34c7331aebe5bdc80744bf955f1144e88181441704ccc7532f55d6fbe8d410440fb8838c2955d688dde4b55f74fc6ba5'
+
'de026a271cbfbefee99bc00a13c50be87294e5e2c5407d23cff6ce2d2a0c853542ce4f7e3e150741c7e8e32466fb1ab7cab266957da5bcca8376fb0f38e94482'
+
'52bd3d2025ffb8a3f6a4a1a1fee1b87d3811f30a210a54aaa7b37838eb256cd766bc1aeda24e4b4f4829992584931ecd97a042794c9b854bd1ebbf452dce2abf'
+
'4918dcebd62ae577401469719f1a8866edd3dc97667aa3de287af1530aa68f50dc2508c883ecd2c9d1fe20f226ecd342b04b08f7a2cace0e531e5f49bbc12f2c')
+
+prepare() {
+  cd ndiswrapper-$pkgver
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.11.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.13.patch
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch -d 
ndiswrapper
+  patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-5.0.patch
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  cd ndiswrapper-$pkgver/ndiswrapper
+  make -C driver KVERS_UNAME="$_kernver"
+}
+
+package() {
+  cd ndiswrapper-$pkgver/ndiswrapper/driver
+  install -Dm644 ndiswrapper.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/ndiswrapper.ko
+}

Copied: ndiswrapper-arch/repos/community-staging-x86_64/linux-4.11.patch (from 
rev 437633, ndiswrapper-arch/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2019-03-04 21:11:20 UTC (rev 
437637)
@@ -0,0 +1,55 @@
+commit fa2aeeccd5366378ca2eb83c6daee64b511fe792
+Author: Felix Yan 
+Date:   Tue May 16 01:32:56 2017 +0800
+
+Add support for Linux 4.11+
+
+diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c
+index c1913a05..2ab4dd21 100644
+--- a/ndiswrapper/driver/ndis.c
 b/ndiswrapper/driver/ndis.c
+@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct 
ndis_mp_block *nmb,
+   WARNING("empty packet ignored");
+   continue;
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+   /* get total number of bytes in packet */
+   NdisGetFirstBufferFromPacketSafe(packet, , ,
+, _length,
+@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block 
*nmb, void *rx_ctx,
+   ERROR("nmb is NULL");
+   EXIT3(return);
+   }
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+   wnd->net_dev->last_rx = jiffies;
++#endif
+ 
+   if