[packages/wl] - build fix for kernel 5.17, rel 15
baggins
baggins at pld-linux.org
Sat Apr 2 22:11:12 CEST 2022
commit 0061e5647c1b262cf412420b2ceddb55dbd068db
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Apr 2 22:10:56 2022 +0200
- build fix for kernel 5.17, rel 15
kernel-5.17.patch | 26 ++++++++++++++++++++++++++
wl.spec | 4 +++-
2 files changed, 29 insertions(+), 1 deletion(-)
---
diff --git a/wl.spec b/wl.spec
index 2bb3a12..c7dc4ad 100644
--- a/wl.spec
+++ b/wl.spec
@@ -18,7 +18,7 @@ exit 1
%define _duplicate_files_terminate_build 0
-%define rel 14
+%define rel 15
%define pname wl
%define file_ver %(echo %{version} | tr . _)
Summary: Broadcom 802.11 a/b/g/n hybrid Linux networking device driver
@@ -47,6 +47,7 @@ Patch8: 008-linux415.patch
Patch9: kernel-4.14.patch
Patch10: linux-5.6.patch
Patch11: kernel-5.10.patch
+Patch12: kernel-5.17.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\
%patch9 -p1
%patch10 -p2
%patch11 -p1
+%patch12 -p2
mkdir wl
mv lib src Makefile wl/
diff --git a/kernel-5.17.patch b/kernel-5.17.patch
new file mode 100644
index 0000000..9753eaa
--- /dev/null
+++ b/kernel-5.17.patch
@@ -0,0 +1,26 @@
+--- wl-6.30.223.271/wl/src/wl/sys/wl_linux.c~ 2022-04-02 21:59:42.000000000 +0200
++++ wl-6.30.223.271/wl/src/wl/sys/wl_linux.c 2022-04-02 22:09:00.597044484 +0200
+@@ -3313,7 +3313,11 @@
+ static ssize_t
+ wl_proc_read(struct file *filp, char __user *buffer, size_t length, loff_t *offp)
+ {
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)
+ wl_info_t * wl = PDE_DATA(file_inode(filp));
++#else
++ wl_info_t * wl = pde_data(file_inode(filp));
++#endif
+ #endif
+ int bcmerror, len;
+ int to_user = 0;
+@@ -3370,7 +3374,11 @@
+ static ssize_t
+ wl_proc_write(struct file *filp, const char __user *buff, size_t length, loff_t *offp)
+ {
++#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0)
+ wl_info_t * wl = PDE_DATA(file_inode(filp));
++#else
++ wl_info_t * wl = pde_data(file_inode(filp));
++#endif
+ #endif
+ int from_user = 0;
+ int bcmerror;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/wl.git/commitdiff/0061e5647c1b262cf412420b2ceddb55dbd068db
More information about the pld-cvs-commit
mailing list