提交 b9c48649 编写于 作者: D Dave Chinner

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: NDave Chinner <david@fromorbit.com>
Reviewed-by: NChristoph Hellwig <hch@lst.de>
上级 a3380ae3
...@@ -1443,7 +1443,7 @@ xfs_buf_iomove( ...@@ -1443,7 +1443,7 @@ xfs_buf_iomove(
xfs_buf_t *bp, /* buffer to process */ xfs_buf_t *bp, /* buffer to process */
size_t boff, /* starting buffer offset */ size_t boff, /* starting buffer offset */
size_t bsize, /* length to copy */ size_t bsize, /* length to copy */
caddr_t data, /* data address */ void *data, /* data address */
xfs_buf_rw_t mode) /* read/write/zero flag */ xfs_buf_rw_t mode) /* read/write/zero flag */
{ {
size_t bend, cpoff, csize; size_t bend, cpoff, csize;
......
...@@ -243,7 +243,7 @@ extern void xfs_buf_ioend(xfs_buf_t *, int); ...@@ -243,7 +243,7 @@ extern void xfs_buf_ioend(xfs_buf_t *, int);
extern void xfs_buf_ioerror(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_iorequest(xfs_buf_t *);
extern int xfs_buf_iowait(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); xfs_buf_rw_t);
static inline int xfs_buf_iostrategy(xfs_buf_t *bp) static inline int xfs_buf_iostrategy(xfs_buf_t *bp)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册