All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] fs_parse: make function fs_param_bad_value() static
@ 2020-07-07 11:23 Wei Yongjun
  0 siblings, 0 replies; only message in thread
From: Wei Yongjun @ 2020-07-07 11:23 UTC (permalink / raw)
  To: Hulk Robot, Alexander Viro; +Cc: Wei Yongjun, linux-fsdevel

The sparse tool complains as follows:

fs/fs_parser.c:192:5: warning:
 symbol 'fs_param_bad_value' was not declared. Should it be static?

Function fs_param_bad_value() is not used outside of fs_parser.c,
so marks it static.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
 fs/fs_parser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/fs_parser.c b/fs/fs_parser.c
index ab53e42a874a..68b0148f4bb8 100644
--- a/fs/fs_parser.c
+++ b/fs/fs_parser.c
@@ -189,7 +189,7 @@ int fs_lookup_param(struct fs_context *fc,
 }
 EXPORT_SYMBOL(fs_lookup_param);
 
-int fs_param_bad_value(struct p_log *log, struct fs_parameter *param)
+static int fs_param_bad_value(struct p_log *log, struct fs_parameter *param)
 {
 	return inval_plog(log, "Bad value for '%s'", param->key);
 }


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-07 11:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-07 11:23 [PATCH -next] fs_parse: make function fs_param_bad_value() static Wei Yongjun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.