From: Hongbo Li <lihongbo22@huawei.com> hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/release-management/issues/ID5W1P ------------------ Fix sparse warning for mfs_dops, mfs_sops and _acquire_set_path. Fixes: 53932975cf07 ("mfs: implement the mount procedure") Signed-off-by: Hongbo Li <lihongbo22@huawei.com> --- fs/mfs/super.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/mfs/super.c b/fs/mfs/super.c index fa096f17e4a7..37dd5ea0bc9d 100644 --- a/fs/mfs/super.c +++ b/fs/mfs/super.c @@ -101,7 +101,7 @@ static void mfs_d_release(struct dentry *dentry) mfs_free_dentry_info(dentry); } -const struct dentry_operations mfs_dops = { +static const struct dentry_operations mfs_dops = { .d_release = mfs_d_release, }; @@ -138,7 +138,7 @@ static int mfs_show_options(struct seq_file *seq, struct dentry *root) return 0; } -const struct super_operations mfs_sops = { +static const struct super_operations mfs_sops = { .alloc_inode = mfs_alloc_inode, .free_inode = mfs_free_inode, .drop_inode = generic_delete_inode, @@ -183,7 +183,7 @@ static char *remove_trailing(char *s, char c) return s; } -char *_acquire_set_path(char *inputpath, struct path *target) +static char *_acquire_set_path(char *inputpath, struct path *target) { char *p, *realp, *path; char *res; -- 2.25.1