From 4b51e5e3428076c13a638348763b1dc1e6367b06 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Wed, 21 Oct 2020 08:43:24 +0200 Subject: [PATCH] - fix building with kernel 5.9 - rel 11 --- linux-5.9.patch | 14 ++++++++++++++ wl.spec | 4 +++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 linux-5.9.patch diff --git a/linux-5.9.patch b/linux-5.9.patch new file mode 100644 index 0000000..1e50791 --- /dev/null +++ b/linux-5.9.patch @@ -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 6b838b3..2045373 100644 --- 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/ -- 2.43.0