mirror of
https://github.com/morrownr/8821cu-20210916.git
synced 2024-11-16 02:40:41 +00:00
fix: os_dep/osdep_service.c: Add a checking kernel version (>=5.4) for MODULE_IMPORT_NS
[error 1] in Rockchip v20230524 kernel 5.10.y ERROR: modpost: module 8821cu uses symbol kernel_write from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it. ERROR: modpost: module 8821cu uses symbol kernel_read from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it. ERROR: modpost: module 8821cu uses symbol filp_open from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it. make[1]: *** [scripts/Makefile.modpost:168: modules-only.symvers] Error 1 make[1]: *** Deleting file 'modules-only.symvers' make: *** [Makefile:1524: modules] Error 2 make: *** Waiting for unfinished jobs.... [error 2] build error in kernel 4.19.y type defaults to 'int' in declaration of 'MODULE_IMPORT_NS' [-Werror=implicit-int] ... Signed-off-by: Steve Jeong <steve@how2flow.net>
This commit is contained in:
parent
1644c2d576
commit
b9ba026425
@ -52,6 +52,10 @@ inline int RTW_STATUS_CODE(int error_code)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)
|
||||
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
|
||||
#endif
|
||||
|
||||
u32 rtw_atoi(u8 *s)
|
||||
{
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user