lib/vsprintf: Make function pointer_string static
authorYueHaibing <yuehaibing@huawei.com>
Fri, 26 Apr 2019 16:46:30 +0000 (00:46 +0800)
committerPetr Mladek <pmladek@suse.com>
Mon, 29 Apr 2019 10:39:58 +0000 (12:39 +0200)
Fix sparse warning:

lib/vsprintf.c:673:6: warning:
 symbol 'pointer_string' was not declared. Should it be static?

Link: http://lkml.kernel.org/r/20190426164630.22104-1-yuehaibing@huawei.com
To: <sergey.senozhatsky@gmail.com>
To: <andriy.shevchenko@linux.intel.com>
To: <geert+renesas@glider.be>
To: <rostedt@goodmis.org>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
lib/vsprintf.c

index 1f367f3a7e2b7230f54a12923878f0615ef0cbd2..7b0a6140bfad917bff73d4bbfdf125e5de63a6be 100644 (file)
@@ -670,8 +670,9 @@ char *string(char *buf, char *end, const char *s,
        return string_nocheck(buf, end, s, spec);
 }
 
-char *pointer_string(char *buf, char *end, const void *ptr,
-                    struct printf_spec spec)
+static char *pointer_string(char *buf, char *end,
+                           const void *ptr,
+                           struct printf_spec spec)
 {
        spec.base = 16;
        spec.flags |= SMALL;