Skip to contentSkip to conversation

gfs2: remove extern from free_local_statfs_inodes and find_local_statfs_inode

PATCH New Tom Rix 1 participant 1 message Mar 4, 2023 GFS2 file system

lore
Share & tools
lore

Tom Rix

author
#0 lore raw

PATCH 1/1 gfs2: remove extern from free_local_statfs_inodes and find_local_statfs_inode

smatch reports
fs/gfs2/super.c:1477:13: warning: function 'free_local_statfs_inodes' with external linkage has definition fs/gfs2/super.c:1492:21: warning: function 'find_local_statfs_inode' with external linkage has definition

extern is only needed in a declaration, so remove them.

---
 fs/gfs2/super.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
fs/gfs2/super.c +3 -3
index a83fa62106f0..189d7f7a4548 100644
@@ -1474,7 +1474,7 @@ static void gfs2_free_inode(struct inode *inode)
 	kmem_cache_free(gfs2_inode_cachep, GFS2_I(inode));
 }
 
-extern void free_local_statfs_inodes(struct gfs2_sbd *sdp)
+void free_local_statfs_inodes(struct gfs2_sbd *sdp)
 {
 	struct local_statfs_inode *lsi, *safe;
 
@@ -1489,8 +1489,8 @@ extern void free_local_statfs_inodes(struct gfs2_sbd *sdp)
 	}
 }
 
-extern struct inode *find_local_statfs_inode(struct gfs2_sbd *sdp,
-					     unsigned int index)
+struct inode *find_local_statfs_inode(struct gfs2_sbd *sdp,
+				      unsigned int index)
 {
 	struct local_statfs_inode *lsi;
 
Signature · 1 line
2.27.0