diff mbox

[1/1] s390x: fixup for "fix error propagation in kvm-flic..."

Message ID 20170705135407.6221-1-pasic@linux.vnet.ibm.com
State New
Headers show

Commit Message

Halil Pasic July 5, 2017, 1:54 p.m. UTC
My patch "s390x: fix error propagation in kvm-flic's realize" accidentally
replaced with. That's wrong! So please apply this fixup before including
that patch into mainline (or any other repo).

Signed-off-by: Halil Pasic <pasic@linux.vnet.ibm.com>
---

Hope this is appropriate.
---
 hw/intc/s390_flic_kvm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Cornelia Huck July 5, 2017, 3:29 p.m. UTC | #1
On Wed,  5 Jul 2017 15:54:07 +0200
Halil Pasic <pasic@linux.vnet.ibm.com> wrote:

> My patch "s390x: fix error propagation in kvm-flic's realize" accidentally
> replaced with. That's wrong! So please apply this fixup before including

This sentence is missing something ;)

> that patch into mainline (or any other repo).
> 
> Signed-off-by: Halil Pasic <pasic@linux.vnet.ibm.com>
> ---
> 
> Hope this is appropriate.

git actually has a 'fixup!' handling mechanism.

> ---
>  hw/intc/s390_flic_kvm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/hw/intc/s390_flic_kvm.c b/hw/intc/s390_flic_kvm.c
> index 88f1555121..a587ace3df 100644
> --- a/hw/intc/s390_flic_kvm.c
> +++ b/hw/intc/s390_flic_kvm.c
> @@ -467,7 +467,7 @@ static void kvm_s390_flic_realize(DeviceState *dev, Error **errp)
>      ret = kvm_vm_ioctl(kvm_state, KVM_CREATE_DEVICE, &cd);
>      if (ret < 0) {
>          error_setg_errno(&errp_local, errno, "Creating the KVM device failed");
> -        trace_flic_no_device_api(errno);
> +        trace_flic_create_device(errno);
>          goto fail;
>      }
>      flic_state->fd = cd.fd;

Acked-by: Cornelia Huck <cohuck@redhat.com>

Christian, will you handle this?
Christian Borntraeger July 5, 2017, 4:27 p.m. UTC | #2
On 07/05/2017 05:29 PM, Cornelia Huck wrote:
> On Wed,  5 Jul 2017 15:54:07 +0200
> Halil Pasic <pasic@linux.vnet.ibm.com> wrote:
> 
>> My patch "s390x: fix error propagation in kvm-flic's realize" accidentally
>> replaced with. That's wrong! So please apply this fixup before including
> 
> This sentence is missing something ;)
> 
>> that patch into mainline (or any other repo).
>>
>> Signed-off-by: Halil Pasic <pasic@linux.vnet.ibm.com>
>> ---
>>
>> Hope this is appropriate.
> 
> git actually has a 'fixup!' handling mechanism.
> 
>> ---
>>  hw/intc/s390_flic_kvm.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/hw/intc/s390_flic_kvm.c b/hw/intc/s390_flic_kvm.c
>> index 88f1555121..a587ace3df 100644
>> --- a/hw/intc/s390_flic_kvm.c
>> +++ b/hw/intc/s390_flic_kvm.c
>> @@ -467,7 +467,7 @@ static void kvm_s390_flic_realize(DeviceState *dev, Error **errp)
>>      ret = kvm_vm_ioctl(kvm_state, KVM_CREATE_DEVICE, &cd);
>>      if (ret < 0) {
>>          error_setg_errno(&errp_local, errno, "Creating the KVM device failed");
>> -        trace_flic_no_device_api(errno);
>> +        trace_flic_create_device(errno);
>>          goto fail;
>>      }
>>      flic_state->fd = cd.fd;
> 
> Acked-by: Cornelia Huck <cohuck@redhat.com>
> 
> Christian, will you handle this?

Yes, I will fold this into the original fix and send a pull request for the whole patch list.
Thanks for your review :-)
Halil Pasic July 5, 2017, 5:16 p.m. UTC | #3
On 07/05/2017 06:27 PM, Christian Borntraeger wrote:
> On 07/05/2017 05:29 PM, Cornelia Huck wrote:
>> On Wed,  5 Jul 2017 15:54:07 +0200
>> Halil Pasic <pasic@linux.vnet.ibm.com> wrote:
>>
>>> My patch "s390x: fix error propagation in kvm-flic's realize" accidentally
>>> replaced with. That's wrong! So please apply this fixup before including
>>
>> This sentence is missing something ;)
>>
>>> that patch into mainline (or any other repo).
>>>
>>> Signed-off-by: Halil Pasic <pasic@linux.vnet.ibm.com>
>>> ---
>>>
>>> Hope this is appropriate.
>>
>> git actually has a 'fixup!' handling mechanism.
>>
>>> ---
>>>  hw/intc/s390_flic_kvm.c | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/hw/intc/s390_flic_kvm.c b/hw/intc/s390_flic_kvm.c
>>> index 88f1555121..a587ace3df 100644
>>> --- a/hw/intc/s390_flic_kvm.c
>>> +++ b/hw/intc/s390_flic_kvm.c
>>> @@ -467,7 +467,7 @@ static void kvm_s390_flic_realize(DeviceState *dev, Error **errp)
>>>      ret = kvm_vm_ioctl(kvm_state, KVM_CREATE_DEVICE, &cd);
>>>      if (ret < 0) {
>>>          error_setg_errno(&errp_local, errno, "Creating the KVM device failed");
>>> -        trace_flic_no_device_api(errno);
>>> +        trace_flic_create_device(errno);
>>>          goto fail;
>>>      }
>>>      flic_state->fd = cd.fd;
>>
>> Acked-by: Cornelia Huck <cohuck@redhat.com>
>>
>> Christian, will you handle this?
> 
> Yes, I will fold this into the original fix and send a pull request for the whole patch list.
> Thanks for your review :-)
> 

Thanks Christian, Connie! I will try to remember git checkin --fixup (I was
not aware of this feature) next time, and of course try to avoid next time
from happening in the first.

Regards,
Halil
diff mbox

Patch

diff --git a/hw/intc/s390_flic_kvm.c b/hw/intc/s390_flic_kvm.c
index 88f1555121..a587ace3df 100644
--- a/hw/intc/s390_flic_kvm.c
+++ b/hw/intc/s390_flic_kvm.c
@@ -467,7 +467,7 @@  static void kvm_s390_flic_realize(DeviceState *dev, Error **errp)
     ret = kvm_vm_ioctl(kvm_state, KVM_CREATE_DEVICE, &cd);
     if (ret < 0) {
         error_setg_errno(&errp_local, errno, "Creating the KVM device failed");
-        trace_flic_no_device_api(errno);
+        trace_flic_create_device(errno);
         goto fail;
     }
     flic_state->fd = cd.fd;