Skip to contentSkip to conversation

autofs: Drop unnecessary extern in .h

PATCH In review Tomohiro Kusumi 2 participants 2 messages Jul 3, 2016 – Jul 7, 2016 Kernel automounter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 autofs: Drop unnecessary extern in .h

autofs4_kill_sb() doesn't need to be declared as extern, and no other functions in .h are explicitly declared as extern.

---
 fs/autofs4/autofs_i.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/autofs4/autofs_i.h +1 -1
index a439548..eb87055 100644
@@ -271,4 +271,4 @@ static inline void autofs4_del_expiring(struct dentry *dentry)
 	}
 }
 
-extern void autofs4_kill_sb(struct super_block *);
+void autofs4_kill_sb(struct super_block *);
Signature · 4 lines
2.5.5

--
To unsubscribe from this list: send the line "unsubscribe autofs" in
maintainer
#1 lore raw
Quoted 2 lines · Tomohiro Kusumi

autofs4_kill_sb() doesn't need to be declared as extern, and no other functions in .h are explicitly declared as extern.

Straight forward, also added to the list.

Quoted 10 lines
---
 fs/autofs4/autofs_i.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/autofs4/autofs_i.h +0 -0
index a439548..eb87055 100644

fs/autofs4/autofs_i.h static inline void autofs4_del_expiring(struct dentry · line 274

Quoted 6 lines
fs/autofs4/autofs_i.h +1 -1
@@ -271,4 +271,4 @@ static inline void autofs4_del_expiring(struct dentry
 *dentry)
 	}
 }
 
-extern void autofs4_kill_sb(struct super_block *);
+void autofs4_kill_sb(struct super_block *);

--
To unsubscribe from this list: send the line "unsubscribe autofs" in