From: Zirong Lang Date: Mon, 20 Nov 2017 19:53:56 +0000 (-0600) Subject: xfsprogs: fix wrong do_pwritev definition X-Git-Tag: v4.14.0-rc2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ac9a7bc98eecf7589fcc21568527ce00719b24c0;p=thirdparty%2Fxfsprogs-dev.git xfsprogs: fix wrong do_pwritev definition In io/pwrite.c, if not define HAVE_PWRITEV, we will use: #define do_pwritev(fd, offset, count, buffer_size) (0) But the real do_pwritev() function is: do_pwritev(fd, offset, count, buffer_size, pwritev2_flags); There's one more 'pwritev2_flags' argument. Fixes: c5deeac9 "xfs_io: Add support for pwritev2()" Signed-off-by: Zorro Lang Reviewed-by: Eric Sandeen Signed-off-by: Eric Sandeen --- diff --git a/io/pwrite.c b/io/pwrite.c index 3df976a89..a89edfd04 100644 --- a/io/pwrite.c +++ b/io/pwrite.c @@ -102,7 +102,7 @@ do_pwritev( return bytes; } #else -#define do_pwritev(fd, offset, count, buffer_size) (0) +#define do_pwritev(fd, offset, count, buffer_size, pwritev2_flags) (0) #endif static ssize_t