diff options
author | Dave Chinner <dchinner@redhat.com> | 2012-03-06 23:50:19 -0500 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-03-14 14:21:17 -0400 |
commit | 8d2a5e6ee37f205b3d76c223d4f3f88ba1d06220 (patch) | |
tree | 0d571ac88b5e10499eb552885a45b1f5409d19f5 /fs | |
parent | a05931ceb0160deadbd7798d60d01b17f2d81b09 (diff) |
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')
-rw-r--r-- | fs/xfs/xfs_dir2_block.c | 1 | ||||
-rw-r--r-- | fs/xfs/xfs_ioctl32.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_iops.c | 13 |
3 files changed, 10 insertions, 6 deletions
diff --git a/fs/xfs/xfs_dir2_block.c b/fs/xfs/xfs_dir2_block.c index 9245e029b8ea..d3b63aefd01d 100644 --- a/fs/xfs/xfs_dir2_block.c +++ b/fs/xfs/xfs_dir2_block.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include "xfs_dinode.h" | 29 | #include "xfs_dinode.h" |
30 | #include "xfs_inode.h" | 30 | #include "xfs_inode.h" |
31 | #include "xfs_inode_item.h" | 31 | #include "xfs_inode_item.h" |
32 | #include "xfs_dir2.h" | ||
32 | #include "xfs_dir2_format.h" | 33 | #include "xfs_dir2_format.h" |
33 | #include "xfs_dir2_priv.h" | 34 | #include "xfs_dir2_priv.h" |
34 | #include "xfs_error.h" | 35 | #include "xfs_error.h" |
diff --git a/fs/xfs/xfs_ioctl32.c b/fs/xfs/xfs_ioctl32.c index f9ccb7b7c043..a849a5473aff 100644 --- a/fs/xfs/xfs_ioctl32.c +++ b/fs/xfs/xfs_ioctl32.c | |||
@@ -293,7 +293,7 @@ xfs_compat_ioc_bulkstat( | |||
293 | int res; | 293 | int res; |
294 | 294 | ||
295 | error = xfs_bulkstat_one_compat(mp, inlast, bulkreq.ubuffer, | 295 | error = xfs_bulkstat_one_compat(mp, inlast, bulkreq.ubuffer, |
296 | sizeof(compat_xfs_bstat_t), 0, &res); | 296 | sizeof(compat_xfs_bstat_t), NULL, &res); |
297 | } else if (cmd == XFS_IOC_FSBULKSTAT_32) { | 297 | } else if (cmd == XFS_IOC_FSBULKSTAT_32) { |
298 | error = xfs_bulkstat(mp, &inlast, &count, | 298 | error = xfs_bulkstat(mp, &inlast, &count, |
299 | xfs_bulkstat_one_compat, sizeof(compat_xfs_bstat_t), | 299 | xfs_bulkstat_one_compat, sizeof(compat_xfs_bstat_t), |
diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c index 7c01cda16727..3011b879f850 100644 --- a/fs/xfs/xfs_iops.c +++ b/fs/xfs/xfs_iops.c | |||
@@ -50,12 +50,15 @@ | |||
50 | #include <linux/fiemap.h> | 50 | #include <linux/fiemap.h> |
51 | #include <linux/slab.h> | 51 | #include <linux/slab.h> |
52 | 52 | ||
53 | int xfs_initxattrs(struct inode *inode, const struct xattr *xattr_array, | 53 | static int |
54 | void *fs_info) | 54 | xfs_initxattrs( |
55 | struct inode *inode, | ||
56 | const struct xattr *xattr_array, | ||
57 | void *fs_info) | ||
55 | { | 58 | { |
56 | const struct xattr *xattr; | 59 | const struct xattr *xattr; |
57 | struct xfs_inode *ip = XFS_I(inode); | 60 | struct xfs_inode *ip = XFS_I(inode); |
58 | int error = 0; | 61 | int error = 0; |
59 | 62 | ||
60 | for (xattr = xattr_array; xattr->name != NULL; xattr++) { | 63 | for (xattr = xattr_array; xattr->name != NULL; xattr++) { |
61 | error = xfs_attr_set(ip, xattr->name, xattr->value, | 64 | error = xfs_attr_set(ip, xattr->name, xattr->value, |