* [PATCH 1/1] Fix some building errors
@ 2021-04-23 6:01 Xiao Ni
2021-05-06 20:47 ` Jes Sorensen
0 siblings, 1 reply; 2+ messages in thread
From: Xiao Ni @ 2021-04-23 6:01 UTC (permalink / raw)
To: jes.sorensen; +Cc: ncroxon, linux-raid, mariusz.tkaczyk
There are some building errors if treating warning as errors.
Fix them in this patch.
Signed-off-by: Xiao Ni <xni@redhat.com>
---
super-intel.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/super-intel.c b/super-intel.c
index 876e077..08bf2a3 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -3192,7 +3192,7 @@ static int imsm_create_metadata_checkpoint_update(
}
(*u)->type = update_general_migration_checkpoint;
(*u)->curr_migr_unit = current_migr_unit(super->migr_rec);
- dprintf("prepared for %llu\n", (*u)->curr_migr_unit);
+ dprintf("prepared for %llu\n", (unsigned long long)(*u)->curr_migr_unit);
return update_memory_size;
}
@@ -11127,7 +11127,7 @@ int recover_backup_imsm(struct supertype *st, struct mdinfo *info)
skipped_disks++;
continue;
}
- if (read(dl_disk->fd, buf, unit_len) != unit_len) {
+ if (read(dl_disk->fd, buf, unit_len) != (ssize_t)unit_len) {
pr_err("Cannot read copy area block: %s\n",
strerror(errno));
skipped_disks++;
@@ -11139,7 +11139,7 @@ int recover_backup_imsm(struct supertype *st, struct mdinfo *info)
skipped_disks++;
continue;
}
- if (write(dl_disk->fd, buf, unit_len) != unit_len) {
+ if (write(dl_disk->fd, buf, unit_len) != (ssize_t)unit_len) {
pr_err("Cannot restore block: %s\n",
strerror(errno));
skipped_disks++;
--
2.7.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] Fix some building errors
2021-04-23 6:01 [PATCH 1/1] Fix some building errors Xiao Ni
@ 2021-05-06 20:47 ` Jes Sorensen
0 siblings, 0 replies; 2+ messages in thread
From: Jes Sorensen @ 2021-05-06 20:47 UTC (permalink / raw)
To: Xiao Ni, jes.sorensen; +Cc: ncroxon, linux-raid, mariusz.tkaczyk
On 4/23/21 2:01 AM, Xiao Ni wrote:
> There are some building errors if treating warning as errors.
> Fix them in this patch.
>
> Signed-off-by: Xiao Ni <xni@redhat.com>
> ---
> super-intel.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Applied!
Thanks,
Jes
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-06 20:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-23 6:01 [PATCH 1/1] Fix some building errors Xiao Ni
2021-05-06 20:47 ` Jes Sorensen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.