Skip to contentSkip to conversation

AFS: drop explicit extern

PATCH In review Randy Dunlap 2 participants 2 messages May 26, 2007 – May 27, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 AFS: drop explicit extern

From: Randy Dunlap <[email protected]>

Don't use explicit extern specifier and quieten sparse warning:
fs/afs/vnode.c:564:12: warning: function 'afs_vnode_link' with external linkage has definition

---
 fs/afs/vnode.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/afs/vnode.c +1 -1
@@ -561,7 +561,7 @@ no_server:
 /*
  * create a hard link
  */
-extern int afs_vnode_link(struct afs_vnode *dvnode, struct afs_vnode *vnode,
+int afs_vnode_link(struct afs_vnode *dvnode, struct afs_vnode *vnode,
 			  struct key *key, const char *name)
 {
 	struct afs_server *server;
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 2 lines · Randy Dunlap

Don't use explicit extern specifier and quieten sparse warning:
fs/afs/vnode.c:564:12: warning: function 'afs_vnode_link' with external linkage has definition