Added Kernel 5.17 support
This commit is contained in:
parent
e0c990215e
commit
c65e25b2fc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue