mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
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>
This commit is contained in:
parent
a05931ceb0
commit
8d2a5e6ee3
@ -29,6 +29,7 @@
|
||||
#include "xfs_dinode.h"
|
||||
#include "xfs_inode.h"
|
||||
#include "xfs_inode_item.h"
|
||||
#include "xfs_dir2.h"
|
||||
#include "xfs_dir2_format.h"
|
||||
#include "xfs_dir2_priv.h"
|
||||
#include "xfs_error.h"
|
||||
|
@ -293,7 +293,7 @@ xfs_compat_ioc_bulkstat(
|
||||
int res;
|
||||
|
||||
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) {
|
||||
error = xfs_bulkstat(mp, &inlast, &count,
|
||||
xfs_bulkstat_one_compat, sizeof(compat_xfs_bstat_t),
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user