summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_da_btree.c
diff options
context:
space:
mode:
authorDave Chinner2013-08-12 12:49:44 +0200
committerBen Myers2013-08-12 23:52:54 +0200
commit836a94ad59bf6c1bcea0fdbe945540926fa3ca8b (patch)
treebd07140aeec5f0e62b44ae20ecbf62914b42b038 /fs/xfs/xfs_da_btree.c
parentxfs: minor cleanups (diff)
downloadkernel-qcow2-linux-836a94ad59bf6c1bcea0fdbe945540926fa3ca8b.tar.gz
kernel-qcow2-linux-836a94ad59bf6c1bcea0fdbe945540926fa3ca8b.tar.xz
kernel-qcow2-linux-836a94ad59bf6c1bcea0fdbe945540926fa3ca8b.zip
xfs: fix issues that cause userspace warnings
Some of the code shared with userspace causes compilation warnings from things turned off in the kernel code, such as differences in variable signedness. Fix those issues. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Mark Tinguely <tinguely@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_da_btree.c')
-rw-r--r--fs/xfs/xfs_da_btree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_da_btree.c b/fs/xfs/xfs_da_btree.c
index 8bbd7ef66ea8..d4e59a4ff59f 100644
--- a/fs/xfs/xfs_da_btree.c
+++ b/fs/xfs/xfs_da_btree.c
@@ -399,7 +399,7 @@ xfs_da3_split(
struct xfs_da_intnode *node;
struct xfs_buf *bp;
int max;
- int action;
+ int action = 0;
int error;
int i;
@@ -2454,9 +2454,9 @@ static int
xfs_buf_map_from_irec(
struct xfs_mount *mp,
struct xfs_buf_map **mapp,
- unsigned int *nmaps,
+ int *nmaps,
struct xfs_bmbt_irec *irecs,
- unsigned int nirecs)
+ int nirecs)
{
struct xfs_buf_map *map;
int i;