summaryrefslogtreecommitdiff
path: root/libre/ndiswrapper-module/kernel-5.5.patch
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2020-01-31 15:08:12 +0100
committerAndreas Grapentin <andreas@grapentin.org>2020-01-31 15:11:18 +0100
commit43453ca90eeee7dde9e1b6faecc433aa4dc889b9 (patch)
treed4f297da9e9f8a24fa258c9c2797426da8efdaa2 /libre/ndiswrapper-module/kernel-5.5.patch
parent02710d03959105e09429a0406d7f58996d24495e (diff)
downloadabslibre-43453ca90eeee7dde9e1b6faecc433aa4dc889b9.tar.gz
abslibre-43453ca90eeee7dde9e1b6faecc433aa4dc889b9.tar.bz2
abslibre-43453ca90eeee7dde9e1b6faecc433aa4dc889b9.zip
libre/ndiswrapper-module: added
Diffstat (limited to 'libre/ndiswrapper-module/kernel-5.5.patch')
-rw-r--r--libre/ndiswrapper-module/kernel-5.5.patch72
1 files changed, 72 insertions, 0 deletions
diff --git a/libre/ndiswrapper-module/kernel-5.5.patch b/libre/ndiswrapper-module/kernel-5.5.patch
new file mode 100644
index 000000000..c128a5578
--- /dev/null
+++ b/libre/ndiswrapper-module/kernel-5.5.patch
@@ -0,0 +1,72 @@
+diff -u -r ndiswrapper-1.62-5.4/driver/lin2win.S ndiswrapper-1.62-5.5/driver/lin2win.S
+--- ndiswrapper-1.62-5.4/driver/lin2win.S 2019-02-11 04:11:14.000000000 +0000
++++ ndiswrapper-1.62-5.5/driver/lin2win.S 2020-01-27 22:33:17.363779223 +0000
+@@ -14,6 +14,7 @@
+ */
+
+ #include <linux/linkage.h>
++#include <linux/version.h>
+
+ .text
+
+@@ -71,8 +72,12 @@
+ * We get (ARGC + 1) arguments.
+ */
+ .macro lin2win name, argc
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,5,0)
+ .type \name, @function
+ ENTRY(\name)
++#else
++ SYM_FUNC_START(\name)
++#endif
+
+ /* Create a call frame - it's optional, but good for debugging */
+ .cfi_startproc
+@@ -125,7 +130,11 @@
+ .cfi_restore %rbp
+ ret
+ .cfi_endproc
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,5,0)
+ .size \name, (. - \name)
++#else
++ SYM_FUNC_END(\name)
++#endif
+ .endm
+
+ /* Define lin2winN functions */
+diff -u -r ndiswrapper-1.62-5.4/driver/win2lin_stubs.S ndiswrapper-1.62-5.5/driver/win2lin_stubs.S
+--- ndiswrapper-1.62-5.4/driver/win2lin_stubs.S 2019-02-11 04:11:14.000000000 +0000
++++ ndiswrapper-1.62-5.5/driver/win2lin_stubs.S 2020-01-27 22:33:20.867163026 +0000
+@@ -14,6 +14,7 @@
+ */
+
+ #include <linux/linkage.h>
++#include <linux/version.h>
+
+ #ifdef CONFIG_X86_64
+
+@@ -141,8 +142,12 @@
+
+ /* Declare function LONGNAME, call function SHORTNAME with ARGC arguments */
+ .macro win2linm longname, shortname, argc
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,5,0)
+ .type \longname, @function
+ ENTRY(\longname)
++#else
++ SYM_FUNC_START(\longname)
++#endif
+
+ /* Create a call frame - it's optional, but good for debugging */
+ .cfi_startproc
+@@ -243,7 +248,11 @@
+ .cfi_restore %rbp
+ ret
+ .cfi_endproc
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,5,0)
+ .size \longname, (. - \longname)
++#else
++ SYM_FUNC_END(\longname)
++#endif
+ .endm
+
+ #define win2lin(name, argc) win2linm win2lin_ ## name ## _ ## argc, name, argc