]> git.pld-linux.org Git - packages/wl.git/commitdiff
- fix building with kernel 5.9 auto/th/wl-6.30.223.271-11
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 21 Oct 2020 06:43:24 +0000 (08:43 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 21 Oct 2020 06:43:24 +0000 (08:43 +0200)
- rel 11

linux-5.9.patch [new file with mode: 0644]
wl.spec

diff --git a/linux-5.9.patch b/linux-5.9.patch
new file mode 100644 (file)
index 0000000..1e50791
--- /dev/null
@@ -0,0 +1,14 @@
+--- wl-6.30.223.271/wl/src/wl/sys/wl_linux.c~  2020-10-21 08:40:00.000000000 +0200
++++ wl-6.30.223.271/wl/src/wl/sys/wl_linux.c   2020-10-21 08:41:58.566248630 +0200
+@@ -1662,7 +1662,11 @@
+               goto done2;
+       }
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0)
++      if (uaccess_kernel())
++#else
+       if (segment_eq(get_fs(), KERNEL_DS))
++#endif
+               buf = ioc.buf;
+       else if (ioc.buf) {
diff --git a/wl.spec b/wl.spec
index 6b838b3a4b5d2d06ae0661deca5b2630fe551078..204537329a41e07023bac3bb3bcf1da86424615b 100644 (file)
--- a/wl.spec
+++ b/wl.spec
@@ -18,7 +18,7 @@ exit 1
 
 %define                _duplicate_files_terminate_build        0
 
-%define                rel     10
+%define                rel     11
 %define                pname   wl
 %define                file_ver        %(echo %{version} | tr . _)
 Summary:       Broadcom 802.11 a/b/g/n hybrid Linux networking device driver
@@ -46,6 +46,7 @@ Patch7:               linux-4.12.patch
 Patch8:                008-linux415.patch
 Patch9:                linux-5.1.patch
 Patch10:       linux-5.6.patch
+Patch11:       linux-5.9.patch
 URL:           http://www.broadcom.com/support/802.11
 BuildRequires: rpmbuild(macros) >= 1.701
 %{?with_kernel:%{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}}
@@ -137,6 +138,7 @@ EOF\
 %patch8 -p1
 %patch9 -p1
 %patch10 -p2
+%patch11 -p2
 
 mkdir wl
 mv lib src Makefile wl/
This page took 0.125924 seconds and 4 git commands to generate.