fs/cifs/fs_context.c:442:6: warning: symbol 'sanitize_path' was not declared.
Should it be static?
Reported-by: kernel test robot <lkp(a)intel.com>
Signed-off-by: kernel test robot <lkp(a)intel.com>
---
fs_context.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/cifs/fs_context.c b/fs/cifs/fs_context.c
index 4ce8a7df3a02e5..f3557d24664c13 100644
--- a/fs/cifs/fs_context.c
+++ b/fs/cifs/fs_context.c
@@ -439,7 +439,7 @@ int smb3_parse_opt(const char *options, const char *key, char **val)
* but there are some bugs that prevent rename from working if there are
* multiple delimiters.
*/
-void sanitize_path(char *path) {
+static void sanitize_path(char *path) {
char *pos = path, last = *path;
unsigned int offset = 0;