]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
xfs: xfs_buf_iomove() doesn't care about signedness
authorDave Chinner <david@fromorbit.com>
Tue, 19 Jan 2010 23:47:39 +0000 (10:47 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 19 Jan 2010 23:47:39 +0000 (10:47 +1100)
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>
fs/xfs/linux-2.6/xfs_buf.c
fs/xfs/linux-2.6/xfs_buf.h

index 158fad4550df044bfbf2794ebfecba6d2c4b9733..efd745bb88877d551e35be823be0c5fb216d5063 100644 (file)
@@ -1443,7 +1443,7 @@ xfs_buf_iomove(
        xfs_buf_t               *bp,    /* buffer to process            */
        size_t                  boff,   /* starting buffer offset       */
        size_t                  bsize,  /* length to copy               */
-       caddr_t                 data,   /* data address                 */
+       void                    *data,  /* data address                 */
        xfs_buf_rw_t            mode)   /* read/write/zero flag         */
 {
        size_t                  bend, cpoff, csize;
index 9a29d18656ec18a42116b3064b17c9c72958f214..4f2ad66edb7625f90273265edb04d554fc8e8215 100644 (file)
@@ -243,7 +243,7 @@ extern void xfs_buf_ioend(xfs_buf_t *,      int);
 extern void xfs_buf_ioerror(xfs_buf_t *, int);
 extern int xfs_buf_iorequest(xfs_buf_t *);
 extern int xfs_buf_iowait(xfs_buf_t *);
-extern void xfs_buf_iomove(xfs_buf_t *, size_t, size_t, xfs_caddr_t,
+extern void xfs_buf_iomove(xfs_buf_t *, size_t, size_t, void *,
                                xfs_buf_rw_t);
 
 static inline int xfs_buf_iostrategy(xfs_buf_t *bp)