From c65e25b2fcc2bb9d0eee8d5c99a65b46a0e47b0c Mon Sep 17 00:00:00 2001 From: ivanovborislav <81085106+ivanovborislav@users.noreply.github.com> Date: Tue, 29 Mar 2022 18:53:23 +0300 Subject: [PATCH] Added Kernel 5.17 support --- os_dep/linux/rtw_proc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/os_dep/linux/rtw_proc.c b/os_dep/linux/rtw_proc.c index e055f05..a5701e9 100644 --- a/os_dep/linux/rtw_proc.c +++ b/os_dep/linux/rtw_proc.c @@ -34,10 +34,14 @@ inline struct proc_dir_entry *get_rtw_drv_proc(void) #define file_inode(file) ((file)->f_dentry->d_inode) #endif +#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)) #if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0)) #define PDE_DATA(inode) PDE((inode))->data #define proc_get_parent_data(inode) PDE((inode))->parent->data #endif +#else +#define PDE_DATA(inode) pde_data(inode) +#endif #if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 24)) #define get_proc_net proc_net