mirror of
https://github.com/nxp-imx/mwifiex.git
synced 2025-01-15 16:25:35 +00:00
mwifiex: fix build error on Linux5.12
Signed-off-by: Sherry Sun <sherry.sun@nxp.com> Reviewed-by: yang.tian <yang.tian@nxp.com>
This commit is contained in:
parent
3988009733
commit
b07fa16439
1 changed files with 8 additions and 0 deletions
|
@ -7001,7 +7001,11 @@ t_void woal_store_ssu_dump(moal_handle *phandle, mlan_event *pmevent)
|
||||||
if (IS_ERR(dentry)) {
|
if (IS_ERR(dentry)) {
|
||||||
goto save_ssudump;
|
goto save_ssudump;
|
||||||
}
|
}
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 12, 0)
|
||||||
vfs_mkdir(path.dentry->d_inode, dentry, 0777);
|
vfs_mkdir(path.dentry->d_inode, dentry, 0777);
|
||||||
|
#else
|
||||||
|
vfs_mkdir(&init_user_ns, path.dentry->d_inode, dentry, 0777);
|
||||||
|
#endif
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0)
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0)
|
||||||
mutex_unlock(&path.dentry->d_inode->i_mutex);
|
mutex_unlock(&path.dentry->d_inode->i_mutex);
|
||||||
#else
|
#else
|
||||||
|
@ -7734,7 +7738,11 @@ void woal_create_dump_dir(moal_handle *phandle, char *dir_buf, int buf_size)
|
||||||
dir_buf);
|
dir_buf);
|
||||||
goto default_dir;
|
goto default_dir;
|
||||||
}
|
}
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 12, 0)
|
||||||
ret = vfs_mkdir(path.dentry->d_inode, dentry, 0777);
|
ret = vfs_mkdir(path.dentry->d_inode, dentry, 0777);
|
||||||
|
#else
|
||||||
|
ret = vfs_mkdir(&init_user_ns, path.dentry->d_inode, dentry, 0777);
|
||||||
|
#endif
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0)
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0)
|
||||||
mutex_unlock(&path.dentry->d_inode->i_mutex);
|
mutex_unlock(&path.dentry->d_inode->i_mutex);
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue