libs/libc: fix compile warning about modlib_depend when CONFIG_MODLIB_MAXDEPEND = 0

modlib/modlib_symbols.c: In function ‘modlib_symcallback’:
modlib/modlib_symbols.c:215:13: warning: implicit declaration of function ‘modlib_depend’; did you mean ‘modlib_read’? [-Wimplicit-function-declaration]
  215 |       ret = modlib_depend(exportinfo->modp, modp);
      |             ^~~~~~~~~~~~~
      |             modlib_read

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
dongjiuzhu1
2023-10-05 19:42:23 +08:00
committed by Xiang Xiao
parent e88a36fa92
commit db13ff2dd5
3 changed files with 9 additions and 9 deletions
+2
View File
@@ -282,7 +282,9 @@ FAR void *insmod(FAR const char *filename, FAR const char *modname)
errout_with_load:
modlib_unload(&loadinfo);
#if CONFIG_MODLIB_MAXDEPEND > 0
modlib_undepend(modp);
#endif
errout_with_registry_entry:
kmm_free(modp);
errout_with_loadinfo: