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 1f367f3..7b0a614 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;