summaryrefslogtreecommitdiff
path: root/sys-kernel
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-10-13 22:54:03 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-10-13 22:54:03 +0100
commitcc9132cbbfb116ec951c9b88b95b20d464af8488 (patch)
treef8d616f3b4a801a05b7cfe77e8a7b5b4fd85baf5 /sys-kernel
parent216df9fd06cfbaecc3e3109909151ec556ab5d50 (diff)
sys-kernel/bcmwl-dkms : revision bump
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/bcmwl-dkms/bcmwl-dkms-6.30.223.271-r1.ebuild (renamed from sys-kernel/bcmwl-dkms/bcmwl-dkms-6.30.223.271.ebuild)1
-rw-r--r--sys-kernel/bcmwl-dkms/files/kernel-5.17.patch29
2 files changed, 30 insertions, 0 deletions
diff --git a/sys-kernel/bcmwl-dkms/bcmwl-dkms-6.30.223.271.ebuild b/sys-kernel/bcmwl-dkms/bcmwl-dkms-6.30.223.271-r1.ebuild
index 32204783..ea214e29 100644
--- a/sys-kernel/bcmwl-dkms/bcmwl-dkms-6.30.223.271.ebuild
+++ b/sys-kernel/bcmwl-dkms/bcmwl-dkms-6.30.223.271-r1.ebuild
@@ -25,6 +25,7 @@ PATCHES=(
"${FILESDIR}"/date-time.patch
"${FILESDIR}"/date-time-error.patch
"${FILESDIR}"/kernel-4.7-to-kernel-5.10.patch
+ "${FILESDIR}"/kernel-5.17.patch
"${FILESDIR}"/kernel-5.18.patch
"${FILESDIR}"/kernel-6.0.patch
)
diff --git a/sys-kernel/bcmwl-dkms/files/kernel-5.17.patch b/sys-kernel/bcmwl-dkms/files/kernel-5.17.patch
new file mode 100644
index 00000000..9352b3ac
--- /dev/null
+++ b/sys-kernel/bcmwl-dkms/files/kernel-5.17.patch
@@ -0,0 +1,29 @@
+diff -Nur a/src/wl/sys/wl_linux.c b/src/wl/sys/wl_linux.c
+--- a/src/wl/sys/wl_linux.c 2022-10-13 22:44:30.922488855 +0100
++++ b/src/wl/sys/wl_linux.c 2022-10-13 22:48:36.115511672 +0100
+@@ -3307,8 +3307,12 @@
+ 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;
+ char tmp[8];
+@@ -3364,8 +3368,12 @@
+ 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(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 from_user = 0;
+ int bcmerror;
+