Skip to contentSkip to conversation

btrfs/xattr.c: quiet sparse noise

PATCH New H Hartley Sweeten 1 participant 1 message Sep 23, 2011 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs/xattr.c: quiet sparse noise

Quiet the sparse noise:

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

---

fs/btrfs/xattr.c +2 -2
index 6196e1a..e878463 100644
@@ -374,8 +374,8 @@ int btrfs_removexattr(struct dentry *dentry, const char *name)
 				XATTR_REPLACE);
 }
 
-int btrfs_initxattrs(struct inode *inode, const struct xattr *xattr_array,
-		     void *fs_info)
+static int btrfs_initxattrs(struct inode *inode,
+			    const struct xattr *xattr_array, void *fs_info)
 {
 	const struct xattr *xattr;
 	struct btrfs_trans_handle *trans = fs_info;