Added Kernel 5.17 support

This commit is contained in:
ivanovborislav 2022-03-29 18:53:23 +03:00 committed by GitHub
parent e0c990215e
commit c65e25b2fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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