Skip to contentSkip to conversation

staging: lustre: fix sparse warning

PATCH New Tal Shorer 1 participant 1 message Apr 5, 2015 Staging

lore
Share & tools
lore

Tal Shorer

author
#0 lore raw

PATCH 1/1 staging: lustre: fix sparse warning

Sparse reports:

drivers/staging/lustre/lustre/obdclass/obd_mount.c:1284:6: warning:
symbol 'lustre_kill_super' was not declared. Should it be static?

Fix this warning by making lustre_kill_super static. It is not used outside this file.

---
 drivers/staging/lustre/lustre/obdclass/obd_mount.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lustre/obdclass/obd_mount.c +1 -1
index 4f39cde..306aee1 100644
@@ -1281,7 +1281,7 @@ struct dentry *lustre_mount(struct file_system_type *fs_type, int flags,
 	return mount_nodev(fs_type, flags, &lmd2, lustre_fill_super);
 }
 
-void lustre_kill_super(struct super_block *sb)
+static void lustre_kill_super(struct super_block *sb)
 {
 	struct lustre_sb_info *lsi = s2lsi(sb);
 
Signature · 1 line
2.3.4