!61 Fix Qemu target build when LOSCFG_COMPILE_DEBUG is enabled

Merge pull request !61 from likailong/master
This commit is contained in:
openharmony_ci 2021-01-25 16:49:00 +08:00 committed by Gitee
commit b4a1cf6d54
1 changed files with 2 additions and 0 deletions

View File

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