]> git.pld-linux.org Git - packages/wl.git/blame - kernel-5.17.patch
- fix kernel version in patch for 5.17, rel 16
[packages/wl.git] / kernel-5.17.patch
CommitLineData
0061e564
JR
1--- wl-6.30.223.271/wl/src/wl/sys/wl_linux.c~ 2022-04-02 21:59:42.000000000 +0200
2+++ wl-6.30.223.271/wl/src/wl/sys/wl_linux.c 2022-04-02 22:09:00.597044484 +0200
3@@ -3313,7 +3313,11 @@
4 static ssize_t
5 wl_proc_read(struct file *filp, char __user *buffer, size_t length, loff_t *offp)
6 {
7+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)
8 wl_info_t * wl = PDE_DATA(file_inode(filp));
9+#else
10+ wl_info_t * wl = pde_data(file_inode(filp));
11+#endif
12 #endif
13 int bcmerror, len;
14 int to_user = 0;
15@@ -3370,7 +3374,11 @@
16 static ssize_t
17 wl_proc_write(struct file *filp, const char __user *buff, size_t length, loff_t *offp)
18 {
2d967bf0 19+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)
0061e564
JR
20 wl_info_t * wl = PDE_DATA(file_inode(filp));
21+#else
22+ wl_info_t * wl = pde_data(file_inode(filp));
23+#endif
24 #endif
25 int from_user = 0;
26 int bcmerror;
This page took 0.069791 seconds and 4 git commands to generate.