From: Martin Wilck <mwilck@xxxxxxxx> Signed-off-by: Martin Wilck <mwilck@xxxxxxxx> --- kpartx/gpt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kpartx/gpt.c b/kpartx/gpt.c index e31611a3..f3216ba2 100644 --- a/kpartx/gpt.c +++ b/kpartx/gpt.c @@ -182,7 +182,7 @@ last_lba(int filedes) static ssize_t -read_lastoddsector(int fd, uint64_t lba, void *buffer, size_t count) +read_lastoddsector(int fd, void *buffer, size_t count) { int rc; struct blkdev_ioctl_param ioctl_param; @@ -221,7 +221,7 @@ read_lba(int fd, uint64_t lba, void *buffer, size_t bytes) one sector, so we don't have to be fancy. */ if (!bytesread && !(lastlba & 1) && lba == lastlba) { - bytesread = read_lastoddsector(fd, lba, buffer, bytes); + bytesread = read_lastoddsector(fd, buffer, bytes); } return bytesread; } -- 2.23.0 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel