From: Stefan Weil Date: Sun, 16 Mar 2014 18:02:52 +0000 (+0100) Subject: util: Add 'static' attribute to function implementation X-Git-Tag: qemu-xen-4.5.0-rc1~72^2~19 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=08cf99629d5de859aad0d54bafb2f18803a86dfe;p=qemu-upstream-4.6-testing.git 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: Stefan Weil Reviewed-by: Richard Henderson Signed-off-by: Michael Tokarev --- diff --git a/util/module.c b/util/module.c index 863a8a32a..214effb39 100644 --- a/util/module.c +++ b/util/module.c @@ -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;