Your message dated Sat, 16 Sep 2017 23:55:50 +0300
with message-id <20170916205550.u3kok4ewritg4kyq@localhost>
and subject line ploop now builds on ppc64el
has caused the Debian Bug report #765753,
regarding ploop: Add casts in order to build for ppc64el
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
765753: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=765753
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: src:ploop
Version: 1.12.1-1
Severity: normal
Tags: patch
User: debian-powe...@lists.debian.org
Usertags: ppc64el
Dear Maintainer,
ploop is not building for ppc64el [1] because of some casting problems [2].
Using the attached patch I managed to build it for ppc64el.
[1] https://wiki.debian.org/ppc64el
[2] https://buildd.debian.org/status/package.php?p=ploop&suite=sid
Thanks,
--
Paulo Flabiano Smorigo
IBM Linux Technology Center
diff --git a/lib/balloon.c b/lib/balloon.c
index a392bdd..6110c9e 100644
--- a/lib/balloon.c
+++ b/lib/balloon.c
@@ -860,7 +860,7 @@ static int ploop_trim(const char *mount_point, __u64
minlen_b, __u64 cluster)
range.minlen = MAX(MAX_DISCARD_CLU * cluster, minlen_b);
for (; range.minlen >= minlen_b; range.minlen /= 2) {
- ploop_log(1, "Call FITRIM, for minlen=%lld", range.minlen);
+ ploop_log(1, "Call FITRIM, for minlen=%lld", (unsigned long
long)range.minlen);
ret = ioctl(fd, FITRIM, &range);
if (ret < 0) {
if (trim_stop)
@@ -894,7 +894,8 @@ static int blk_discard(int fd, __u32 cluster, __u64 start,
__u64 len)
if (start % S2B(cluster) && len > range[1])
range[1] -= start % S2B(cluster);
- ploop_log(1, "Call BLKDISCARD start=%llu length=%llu ",
range[0], range[1]);
+ ploop_log(1, "Call BLKDISCARD start=%llu length=%llu ",
+ (unsigned long long)range[0], (unsigned long
long)range[1]);
ret = ioctl_device(fd, BLKDISCARD, range);
if (ret)
return ret;
@@ -918,9 +919,11 @@ static int __ploop_discard(struct ploop_disk_images_data
*di, int fd,
if (blk_discard_range != NULL)
ploop_log(0, "Discard %s start=%llu length=%llu",
- device, blk_discard_range[0],
blk_discard_range[1]);
+ device, (unsigned long
long)blk_discard_range[0],
+ (unsigned long long)blk_discard_range[1]);
else
- ploop_log(3, "Trying to find free extents bigger than %llu
bytes", minlen_b);
+ ploop_log(3, "Trying to find free extents bigger than %llu
bytes",
+ (unsigned long long)minlen_b);
if (ploop_lock_di(di))
return SYSEXIT_LOCK;
diff --git a/lib/balloon_util.c b/lib/balloon_util.c
index 798792b..88a921d 100644
--- a/lib/balloon_util.c
+++ b/lib/balloon_util.c
@@ -273,14 +273,14 @@ static int fiemap_extent_process(__u32 clu, __u32 len,
__u32 *rmap, __u32 rlen,
ploop_err(0,
"Image corrupted: L2[%u] == %u
(max=%llu)",
clu + j - l2_slot, delta->l2[j],
- (rlen - 1) * B2S(cluster));
+ (long long unsigned)(rlen - 1) *
B2S(cluster));
return(SYSEXIT_PLOOPFMT);
}
if (ridx < delta->l1_size) {
ploop_err(0,
"Image corrupted: L2[%u] == %u
(min=%llu)",
clu + j - l2_slot, delta->l2[j],
- delta->l1_size * B2S(cluster));
+ (long long unsigned)delta->l1_size *
B2S(cluster));
return(SYSEXIT_PLOOPFMT);
}
@@ -538,14 +538,14 @@ static int range_build_rmap(__u32 iblk_start, __u32
iblk_end,
ploop_err(0,
"Image corrupted: L2[%u] == %u (max=%llu) (2)",
clu, delta->l2[l2_slot],
- (rlen - 1) * B2S(cluster));
+ (long long unsigned)(rlen - 1) * B2S(cluster));
return SYSEXIT_PLOOPFMT;
}
if (ridx && ridx < delta->l1_size) {