Commit a763e524 authored by Nathan Scott's avatar Nathan Scott Committed by Nathan Scott

[XFS] sparse: fix warnings in debug/tracing code. From Chris Wedgwood.

SGI Modid: xfs-linux:xfs-kern:174341a
Signed-off-by: default avatarNathan Scott <nathans@sgi.com>
parent 75de706c
...@@ -81,7 +81,7 @@ void ...@@ -81,7 +81,7 @@ void
xfs_rw_enter_trace( xfs_rw_enter_trace(
int tag, int tag,
xfs_iocore_t *io, xfs_iocore_t *io,
const struct iovec *iovp, void *data,
size_t segs, size_t segs,
loff_t offset, loff_t offset,
int ioflags) int ioflags)
...@@ -95,7 +95,7 @@ xfs_rw_enter_trace( ...@@ -95,7 +95,7 @@ xfs_rw_enter_trace(
(void *)ip, (void *)ip,
(void *)((unsigned long)((ip->i_d.di_size >> 32) & 0xffffffff)), (void *)((unsigned long)((ip->i_d.di_size >> 32) & 0xffffffff)),
(void *)((unsigned long)(ip->i_d.di_size & 0xffffffff)), (void *)((unsigned long)(ip->i_d.di_size & 0xffffffff)),
(void *)(__psint_t)iovp, (void *)data,
(void *)((unsigned long)segs), (void *)((unsigned long)segs),
(void *)((unsigned long)((offset >> 32) & 0xffffffff)), (void *)((unsigned long)((offset >> 32) & 0xffffffff)),
(void *)((unsigned long)(offset & 0xffffffff)), (void *)((unsigned long)(offset & 0xffffffff)),
......
...@@ -74,11 +74,11 @@ struct xfs_iomap; ...@@ -74,11 +74,11 @@ struct xfs_iomap;
#define XFS_IOMAP_ALLOC_MAP 25 #define XFS_IOMAP_ALLOC_MAP 25
#define XFS_IOMAP_UNWRITTEN 26 #define XFS_IOMAP_UNWRITTEN 26
extern void xfs_rw_enter_trace(int, struct xfs_iocore *, extern void xfs_rw_enter_trace(int, struct xfs_iocore *,
const struct iovec *, size_t, loff_t, int); void *, size_t, loff_t, int);
extern void xfs_inval_cached_trace(struct xfs_iocore *, extern void xfs_inval_cached_trace(struct xfs_iocore *,
xfs_off_t, xfs_off_t, xfs_off_t, xfs_off_t); xfs_off_t, xfs_off_t, xfs_off_t, xfs_off_t);
#else #else
#define xfs_rw_enter_trace(tag, io, iovec, segs, offset, ioflags) #define xfs_rw_enter_trace(tag, io, data, size, offset, ioflags)
#define xfs_inval_cached_trace(io, offset, len, first, last) #define xfs_inval_cached_trace(io, offset, len, first, last)
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment