提交 08cf9962 编写于 作者: S Stefan Weil 提交者: Michael Tokarev

util: Add 'static' attribute to function implementation

The static code analyzer smatch complains because of a missing 'static'
attribute:

util/module.c:166:6: warning:
 symbol 'module_load' was not declared. Should it be static?

'static' is used in the forward declaration, but not in the implementation.
Add it there, too.
Signed-off-by: NStefan Weil <sw@weilnetz.de>
Reviewed-by: NRichard Henderson <rth@twiddle.net>
Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
上级 06ab66cf
......@@ -163,7 +163,7 @@ out:
}
#endif
void module_load(module_init_type type)
static void module_load(module_init_type type)
{
#ifdef CONFIG_MODULES
char *fname = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册