linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] lib/vsprintf: Make function pointer_string static
@ 2019-04-26 16:46 Yue Haibing
  2019-04-26 17:02 ` Steven Rostedt
  0 siblings, 1 reply; 8+ messages in thread
From: Yue Haibing @ 2019-04-26 16:46 UTC (permalink / raw)
  To: pmladek, sergey.senozhatsky, andriy.shevchenko, geert+renesas,
	rostedt, me
  Cc: linux-kernel, YueHaibing

From: YueHaibing <yuehaibing@huawei.com>

Fix sparse warning:

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

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 lib/vsprintf.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index 1f367f3..7b0a614 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;
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-04-30  8:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-26 16:46 [PATCH -next] lib/vsprintf: Make function pointer_string static Yue Haibing
2019-04-26 17:02 ` Steven Rostedt
2019-04-29 11:08   ` Petr Mladek
2019-04-29 13:13     ` Steven Rostedt
2019-04-29 14:30       ` Petr Mladek
2019-04-29 14:39         ` Steven Rostedt
2019-04-29 16:42           ` Joe Perches
2019-04-30  8:42             ` Petr Mladek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).