[PATCH 1/2] xfs_io: include headers for preadv/pwritev

Dave Chinner david at fromorbit.com
Tue Oct 9 17:21:30 CDT 2012


On Tue, Oct 09, 2012 at 05:02:10PM -0500, Eric Sandeen wrote:
> We need to include uio.h to avoid:
> 
>     [CC]     pread.o
> pread.c: In function ‘do_pread’:
> pread.c:198: warning: implicit declaration of function ‘preadv’
>     [CC]     pwrite.o
> pwrite.c: In function ‘do_pwrite’:
> pwrite.c:85: warning: implicit declaration of function ‘pwritev’

Funny, I don't recall ever seeing that error when I wrote these
patches. But, yeah, I see them now.

> Signed-off-by: Eric Sandeen <sandeen at redhat.com>

Reviewed-by: Dave Chinner <dchinner at redhat.com>

-- 
Dave Chinner
david at fromorbit.com



More information about the xfs mailing list