Skip to contentSkip to conversation

jfs/xattr.c: local functions should be static

PATCH New H Hartley Sweeten 1 participant 1 message Sep 23, 2011 JFS filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 jfs/xattr.c: local functions should be static

Quiets the sparse noise:

warning: symbol 'jfs_initxattrs' was not declared. Should it be static?

---

fs/jfs/xattr.c +1 -1
index 26683e1..c52b16d 100644
@@ -1089,7 +1089,7 @@ int jfs_removexattr(struct dentry *dentry, const char *name)
 }
 
 #ifdef CONFIG_JFS_SECURITY
-int jfs_initxattrs(struct inode *inode, const struct xattr *xattr_array,
+static int jfs_initxattrs(struct inode *inode, const struct xattr *xattr_array,
 		   void *fs_info)
 {
 	const struct xattr *xattr;