All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] curl: fix compilation on OpenBSD
@ 2017-03-17 15:24 Paolo Bonzini
  2017-03-17 18:17 ` Philippe Mathieu-Daudé
  2017-03-18  2:27 ` [Qemu-devel] [Qemu-block] " Max Reitz
  0 siblings, 2 replies; 5+ messages in thread
From: Paolo Bonzini @ 2017-03-17 15:24 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, qemu-block

EPROTO is not found in OpenBSD.   We usually use EIO when no better
errno is available, do that here too.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 block/curl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/block/curl.c b/block/curl.c
index e83dcd8..34dbd33 100644
--- a/block/curl.c
+++ b/block/curl.c
@@ -377,7 +377,7 @@ static void curl_multi_check_completion(BDRVCURLState *s)
                     }
 
                     qemu_mutex_unlock(&s->mutex);
-                    acb->common.cb(acb->common.opaque, -EPROTO);
+                    acb->common.cb(acb->common.opaque, -EIO);
                     qemu_mutex_lock(&s->mutex);
                     qemu_aio_unref(acb);
                     state->acb[i] = NULL;
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH] curl: fix compilation on OpenBSD
  2017-03-17 15:24 [Qemu-devel] [PATCH] curl: fix compilation on OpenBSD Paolo Bonzini
@ 2017-03-17 18:17 ` Philippe Mathieu-Daudé
  2017-03-18  2:27 ` [Qemu-devel] [Qemu-block] " Max Reitz
  1 sibling, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2017-03-17 18:17 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel; +Cc: peter.maydell, qemu-block

On 03/17/2017 12:24 PM, Paolo Bonzini wrote:
> EPROTO is not found in OpenBSD.   We usually use EIO when no better
> errno is available, do that here too.
>
> Reported-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

> ---
>  block/curl.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/block/curl.c b/block/curl.c
> index e83dcd8..34dbd33 100644
> --- a/block/curl.c
> +++ b/block/curl.c
> @@ -377,7 +377,7 @@ static void curl_multi_check_completion(BDRVCURLState *s)
>                      }
>
>                      qemu_mutex_unlock(&s->mutex);
> -                    acb->common.cb(acb->common.opaque, -EPROTO);
> +                    acb->common.cb(acb->common.opaque, -EIO);
>                      qemu_mutex_lock(&s->mutex);
>                      qemu_aio_unref(acb);
>                      state->acb[i] = NULL;
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [Qemu-block] [PATCH] curl: fix compilation on OpenBSD
  2017-03-17 15:24 [Qemu-devel] [PATCH] curl: fix compilation on OpenBSD Paolo Bonzini
  2017-03-17 18:17 ` Philippe Mathieu-Daudé
@ 2017-03-18  2:27 ` Max Reitz
  2017-03-18 17:23   ` Peter Maydell
  1 sibling, 1 reply; 5+ messages in thread
From: Max Reitz @ 2017-03-18  2:27 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel; +Cc: peter.maydell, qemu-block

[-- Attachment #1: Type: text/plain, Size: 448 bytes --]

On 17.03.2017 16:24, Paolo Bonzini wrote:
> EPROTO is not found in OpenBSD.   We usually use EIO when no better
> errno is available, do that here too.
> 
> Reported-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>  block/curl.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Thanks, applied to my block branch:

https://github.com/XanClic/qemu/commits/block

Max


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 512 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [Qemu-block] [PATCH] curl: fix compilation on OpenBSD
  2017-03-18  2:27 ` [Qemu-devel] [Qemu-block] " Max Reitz
@ 2017-03-18 17:23   ` Peter Maydell
  2017-03-20 15:00     ` Max Reitz
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Maydell @ 2017-03-18 17:23 UTC (permalink / raw)
  To: Max Reitz; +Cc: Paolo Bonzini, QEMU Developers, Qemu-block

On 18 March 2017 at 02:27, Max Reitz <mreitz@redhat.com> wrote:
> On 17.03.2017 16:24, Paolo Bonzini wrote:
>> EPROTO is not found in OpenBSD.   We usually use EIO when no better
>> errno is available, do that here too.
>>
>> Reported-by: Peter Maydell <peter.maydell@linaro.org>
>> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>> ---
>>  block/curl.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> Thanks, applied to my block branch:
>
> https://github.com/XanClic/qemu/commits/block

Thanks; I've applied it to master as a build fix, though,
so you can drop it (or leave it and let the merge
sort it out if you like).

thanks
-- PMM

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [Qemu-block] [PATCH] curl: fix compilation on OpenBSD
  2017-03-18 17:23   ` Peter Maydell
@ 2017-03-20 15:00     ` Max Reitz
  0 siblings, 0 replies; 5+ messages in thread
From: Max Reitz @ 2017-03-20 15:00 UTC (permalink / raw)
  To: Peter Maydell; +Cc: Paolo Bonzini, QEMU Developers, Qemu-block

[-- Attachment #1: Type: text/plain, Size: 752 bytes --]

On 18.03.2017 18:23, Peter Maydell wrote:
> On 18 March 2017 at 02:27, Max Reitz <mreitz@redhat.com> wrote:
>> On 17.03.2017 16:24, Paolo Bonzini wrote:
>>> EPROTO is not found in OpenBSD.   We usually use EIO when no better
>>> errno is available, do that here too.
>>>
>>> Reported-by: Peter Maydell <peter.maydell@linaro.org>
>>> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>>> ---
>>>  block/curl.c | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> Thanks, applied to my block branch:
>>
>> https://github.com/XanClic/qemu/commits/block
> 
> Thanks; I've applied it to master as a build fix, though,
> so you can drop it (or leave it and let the merge
> sort it out if you like).

Got it, thanks!

Max


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 512 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-03-20 15:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-17 15:24 [Qemu-devel] [PATCH] curl: fix compilation on OpenBSD Paolo Bonzini
2017-03-17 18:17 ` Philippe Mathieu-Daudé
2017-03-18  2:27 ` [Qemu-devel] [Qemu-block] " Max Reitz
2017-03-18 17:23   ` Peter Maydell
2017-03-20 15:00     ` Max Reitz

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.