aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorDave Chinner <david@fromorbit.com>2010-01-19 18:47:39 -0500
committerDave Chinner <david@fromorbit.com>2010-01-19 18:47:39 -0500
commitb9c48649577dfc4a8c263c106d518effa24ea54b (patch)
treedeb48047076b5a97691c0b00ac65c6db96296515 /fs
parenta3380ae39fa321282c407ba5e1835e14b64853d9 (diff)
xfs: xfs_buf_iomove() doesn't care about signedness
xfs_buf_iomove() uses xfs_caddr_t as it's parameter types, but it doesn't care about the signedness of the variables as it is just copying the data. Change the prototype to use void * so that we don't get sign warnings at call sites. Signed-off-by: Dave Chinner <david@fromorbit.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs')
-rw-r--r--fs/xfs/linux-2.6/xfs_buf.c2
-rw-r--r--fs/xfs/linux-2.6/xfs_buf.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.c b/fs/xfs/linux-2.6/xfs_buf.c
index 158fad4550df..efd745bb8887 100644
--- a/fs/xfs/linux-2.6/xfs_buf.c
+++ b/fs/xfs/linux-2.6/xfs_buf.c
@@ -1443,7 +1443,7 @@ xfs_buf_iomove(
1443 xfs_buf_t *bp, /* buffer to process */ 1443 xfs_buf_t *bp, /* buffer to process */
1444 size_t boff, /* starting buffer offset */ 1444 size_t boff, /* starting buffer offset */
1445 size_t bsize, /* length to copy */ 1445 size_t bsize, /* length to copy */
1446 caddr_t data, /* data address */ 1446 void *data, /* data address */
1447 xfs_buf_rw_t mode) /* read/write/zero flag */ 1447 xfs_buf_rw_t mode) /* read/write/zero flag */
1448{ 1448{
1449 size_t bend, cpoff, csize; 1449 size_t bend, cpoff, csize;
diff --git a/fs/xfs/linux-2.6/xfs_buf.h b/fs/xfs/linux-2.6/xfs_buf.h
index 9a29d18656ec..4f2ad66edb76 100644
--- a/fs/xfs/linux-2.6/xfs_buf.h
+++ b/fs/xfs/linux-2.6/xfs_buf.h
@@ -243,7 +243,7 @@ extern void xfs_buf_ioend(xfs_buf_t *, int);
243extern void xfs_buf_ioerror(xfs_buf_t *, int); 243extern void xfs_buf_ioerror(xfs_buf_t *, int);
244extern int xfs_buf_iorequest(xfs_buf_t *); 244extern int xfs_buf_iorequest(xfs_buf_t *);
245extern int xfs_buf_iowait(xfs_buf_t *); 245extern int xfs_buf_iowait(xfs_buf_t *);
246extern void xfs_buf_iomove(xfs_buf_t *, size_t, size_t, xfs_caddr_t, 246extern void xfs_buf_iomove(xfs_buf_t *, size_t, size_t, void *,
247 xfs_buf_rw_t); 247 xfs_buf_rw_t);
248 248
249static inline int xfs_buf_iostrategy(xfs_buf_t *bp) 249static inline int xfs_buf_iostrategy(xfs_buf_t *bp)