1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-12-29 01:08:47 +00:00

Make use of MODULE_IMPORT_NS conditional

Commit 8954f2b8d8 added an unconditional:

    MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);

For compatibility with old kernel versions, guard this declaration
with #ifdef MODULE_IMPORT_NS.

This specific symbol namespace is also Android-specific, so the
declaration should also be conditional on building for Android, but
there doesn't seem to be a single preprocessor symbol that indicates
that.

Signed-off-by: Ben Hutchings <ben.hutchings@mind.be>
This commit is contained in:
Ben Hutchings 2023-11-07 17:09:16 +01:00
parent 4a983e47da
commit 8b485b79be

View File

@ -1640,7 +1640,9 @@ static void __exit rtw_drv_halt(void)
rtw_mstat_dump(RTW_DBGDUMP);
}
#ifdef MODULE_IMPORT_NS
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
#endif
module_init(rtw_drv_entry);
module_exit(rtw_drv_halt);