未验证 提交 9848204f 编写于 作者: Z zjd1988 提交者: GitHub

trying fix coding problems (#405)

(1)宏定义应该是书写遗漏,
(2)munmap在代码中未找到对应的mmap函数,这个是否需要注释。
上级 495a1529
...@@ -76,7 +76,7 @@ int exec_module_exit(int stop_on_all_error); ...@@ -76,7 +76,7 @@ int exec_module_exit(int stop_on_all_error);
#define REGISTER_CRIT_MODULE_EXIT_ARG(level, name, func, arg) \ #define REGISTER_CRIT_MODULE_EXIT_ARG(level, name, func, arg) \
DECLARE_AUTO_INIT_FUNC(UNIQ_DUMMY_NAME(mod_exit)); \ DECLARE_AUTO_INIT_FUNC(UNIQ_DUMMY_NAME(mod_exit)); \
static void UNIQ_DUMMY_NAME(mod_exit(void) \ static void UNIQ_DUMMY_NAME(mod_exit)(void) \
{ \ { \
register_module_exit(level, name, func, arg); \ register_module_exit(level, name, func, arg); \
} }
......
...@@ -890,7 +890,7 @@ static int unload_graph(struct serializer* s, struct ir_graph* graph, void* s_pr ...@@ -890,7 +890,7 @@ static int unload_graph(struct serializer* s, struct ir_graph* graph, void* s_pr
if (priv->fd >= 0) if (priv->fd >= 0)
{ {
munmap(( void* )priv->base, priv->mem_len); // munmap(( void* )priv->base, priv->mem_len);
close(priv->fd); close(priv->fd);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册