summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_iops.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2012-03-07 04:50:19 (GMT)
committerBen Myers <bpm@sgi.com>2012-03-14 18:21:17 (GMT)
commit8d2a5e6ee37f205b3d76c223d4f3f88ba1d06220 (patch)
tree0d571ac88b5e10499eb552885a45b1f5409d19f5 /fs/xfs/xfs_iops.c
parenta05931ceb0160deadbd7798d60d01b17f2d81b09 (diff)
downloadlinux-fsl-qoriq-8d2a5e6ee37f205b3d76c223d4f3f88ba1d06220.tar.xz
xfs: clean up minor sparse warnings
Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_iops.c')
-rw-r--r--fs/xfs/xfs_iops.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c
index 7c01cda..3011b87 100644
--- a/fs/xfs/xfs_iops.c
+++ b/fs/xfs/xfs_iops.c
@@ -50,12 +50,15 @@
#include <linux/fiemap.h>
#include <linux/slab.h>
-int xfs_initxattrs(struct inode *inode, const struct xattr *xattr_array,
- void *fs_info)
+static int
+xfs_initxattrs(
+ struct inode *inode,
+ const struct xattr *xattr_array,
+ void *fs_info)
{
- const struct xattr *xattr;
- struct xfs_inode *ip = XFS_I(inode);
- int error = 0;
+ const struct xattr *xattr;
+ struct xfs_inode *ip = XFS_I(inode);
+ int error = 0;
for (xattr = xattr_array; xattr->name != NULL; xattr++) {
error = xfs_attr_set(ip, xattr->name, xattr->value,