From c7b2235739e73bd5ba79848878319956d9150838 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Fri, 20 Aug 2004 07:05:02 +1000 Subject: [PATCH] [XFS] sparse: fix warnings in IO path tracing code. From Chris Wedgwood. SGI Modid: xfs-linux:xfs-kern:174818a Signed-off-by: Nathan Scott --- fs/xfs/linux-2.6/xfs_lrw.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/xfs/linux-2.6/xfs_lrw.c b/fs/xfs/linux-2.6/xfs_lrw.c index 04d87dab348f7..e825bdb0b77ae 100644 --- a/fs/xfs/linux-2.6/xfs_lrw.c +++ b/fs/xfs/linux-2.6/xfs_lrw.c @@ -345,7 +345,7 @@ xfs_read( } xfs_rw_enter_trace(XFS_READ_ENTER, &ip->i_iocore, - iovp, segs, *offset, ioflags); + (void *)iovp, segs, *offset, ioflags); ret = __generic_file_aio_read(iocb, iovp, segs, offset); xfs_iunlock(ip, XFS_IOLOCK_SHARED); @@ -406,7 +406,7 @@ xfs_sendfile( } } xfs_rw_enter_trace(XFS_SENDFILE_ENTER, &ip->i_iocore, - target, count, *offset, ioflags); + (void*)(unsigned long)target, count, *offset, ioflags); ret = generic_file_sendfile(filp, offset, count, actor, target); xfs_iunlock(ip, XFS_IOLOCK_SHARED); @@ -805,10 +805,10 @@ retry: if (ioflags & IO_ISDIRECT) { xfs_inval_cached_pages(vp, io, *offset, 1, 1); xfs_rw_enter_trace(XFS_DIOWR_ENTER, - io, iovp, segs, *offset, ioflags); + io, (void *)iovp, segs, *offset, ioflags); } else { xfs_rw_enter_trace(XFS_WRITE_ENTER, - io, iovp, segs, *offset, ioflags); + io, (void *)iovp, segs, *offset, ioflags); } ret = generic_file_aio_write_nolock(iocb, iovp, segs, offset); -- 2.53.0