Commit 8d2a5e6e authored by Dave Chinner's avatar Dave Chinner Committed by Ben Myers

xfs: clean up minor sparse warnings

Signed-off-by: default avatarDave Chinner <dchinner@redhat.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarBen Myers <bpm@sgi.com>
parent a05931ce
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include "xfs_dinode.h" #include "xfs_dinode.h"
#include "xfs_inode.h" #include "xfs_inode.h"
#include "xfs_inode_item.h" #include "xfs_inode_item.h"
#include "xfs_dir2.h"
#include "xfs_dir2_format.h" #include "xfs_dir2_format.h"
#include "xfs_dir2_priv.h" #include "xfs_dir2_priv.h"
#include "xfs_error.h" #include "xfs_error.h"
......
...@@ -293,7 +293,7 @@ xfs_compat_ioc_bulkstat( ...@@ -293,7 +293,7 @@ xfs_compat_ioc_bulkstat(
int res; int res;
error = xfs_bulkstat_one_compat(mp, inlast, bulkreq.ubuffer, error = xfs_bulkstat_one_compat(mp, inlast, bulkreq.ubuffer,
sizeof(compat_xfs_bstat_t), 0, &res); sizeof(compat_xfs_bstat_t), NULL, &res);
} else if (cmd == XFS_IOC_FSBULKSTAT_32) { } else if (cmd == XFS_IOC_FSBULKSTAT_32) {
error = xfs_bulkstat(mp, &inlast, &count, error = xfs_bulkstat(mp, &inlast, &count,
xfs_bulkstat_one_compat, sizeof(compat_xfs_bstat_t), xfs_bulkstat_one_compat, sizeof(compat_xfs_bstat_t),
......
...@@ -50,12 +50,15 @@ ...@@ -50,12 +50,15 @@
#include <linux/fiemap.h> #include <linux/fiemap.h>
#include <linux/slab.h> #include <linux/slab.h>
int xfs_initxattrs(struct inode *inode, const struct xattr *xattr_array, static int
void *fs_info) xfs_initxattrs(
struct inode *inode,
const struct xattr *xattr_array,
void *fs_info)
{ {
const struct xattr *xattr; const struct xattr *xattr;
struct xfs_inode *ip = XFS_I(inode); struct xfs_inode *ip = XFS_I(inode);
int error = 0; int error = 0;
for (xattr = xattr_array; xattr->name != NULL; xattr++) { for (xattr = xattr_array; xattr->name != NULL; xattr++) {
error = xfs_attr_set(ip, xattr->name, xattr->value, error = xfs_attr_set(ip, xattr->name, xattr->value,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment