Description: Fixes qemu_arm_virt_ca7 target build failure after enabling LOSCFG_COMPILE_DEBUG option in kernel configuration.

Reviewed-by: Zbigniew
This commit is contained in:
likailong 2021-01-21 09:09:37 +08:00
parent 538b159ca7
commit 0faabbe7b3
1 changed files with 2 additions and 0 deletions

View File

@ -49,8 +49,10 @@ void los_vfs_init(void)
return;
}
#ifdef LOSCFG_FS_FAT_DISK
spin_lock_init(&g_diskSpinlock);
spin_lock_init(&g_diskFatBlockSpinlock);
#endif
files_initlist(&tg_filelist);
fs_initialize();
if ((err = inode_reserve("/", &g_root_inode)) < 0) {