Skip to contentSkip to conversation

fs_parse: make function fs_param_bad_value() static

PATCH New Wei Yongjun 1 participant 1 message Jul 7, 2020 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs_parse: make function fs_param_bad_value() static

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.

---
 fs/fs_parser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/fs_parser.c +1 -1
index ab53e42a874a..68b0148f4bb8 100644
@@ -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);
 }