diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-04-27 00:46:30 +0800 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2019-04-29 12:39:58 +0200 |
commit | ce9d3eceb7ffb74445a8d892ca0685395a93a7e2 (patch) | |
tree | e3d42666f0811e6f3b834d36d30a61d62606477b /lib/vsprintf.c | |
parent | c8c3b584343cb7522fc00322769a9f288305743f (diff) | |
download | lwn-ce9d3eceb7ffb74445a8d892ca0685395a93a7e2.tar.gz lwn-ce9d3eceb7ffb74445a8d892ca0685395a93a7e2.zip |
lib/vsprintf: Make function pointer_string static
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>
Diffstat (limited to 'lib/vsprintf.c')
-rw-r--r-- | lib/vsprintf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 1f367f3a7e2b..7b0a6140bfad 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -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; |