* [Qemu-devel] [PATCH] qom: use object_new_with_type in object_new_with_propv
@ 2019-03-11 8:32 Wei Yang
2019-03-11 17:08 ` Marc-André Lureau
[not found] ` <20190312084313.webcenp43tk3yfmm@steredhat>
0 siblings, 2 replies; 6+ messages in thread
From: Wei Yang @ 2019-03-11 8:32 UTC (permalink / raw)
To: qemu-devel; +Cc: afaerber, Wei Yang
Function object_new_with_propv already get the Type of the object, so we
could leverage object_new_with_type here.
[make check test pass]
Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
---
qom/object.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qom/object.c b/qom/object.c
index 05a8567041..76d2f1eb2f 100644
--- a/qom/object.c
+++ b/qom/object.c
@@ -640,7 +640,7 @@ Object *object_new_with_propv(const char *typename,
error_setg(errp, "object type '%s' is abstract", typename);
return NULL;
}
- obj = object_new(typename);
+ obj = object_new_with_type(klass->type);
if (object_set_propv(obj, &local_err, vargs) < 0) {
goto error;
--
2.19.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH] qom: use object_new_with_type in object_new_with_propv
2019-03-11 8:32 [Qemu-devel] [PATCH] qom: use object_new_with_type in object_new_with_propv Wei Yang
@ 2019-03-11 17:08 ` Marc-André Lureau
2019-03-11 22:19 ` Wei Yang
[not found] ` <20190312084313.webcenp43tk3yfmm@steredhat>
1 sibling, 1 reply; 6+ messages in thread
From: Marc-André Lureau @ 2019-03-11 17:08 UTC (permalink / raw)
To: Wei Yang; +Cc: QEMU, Andreas Färber
Hi
On Mon, Mar 11, 2019 at 9:34 AM Wei Yang <richardw.yang@linux.intel.com> wrote:
>
> Function object_new_with_propv already get the Type of the object, so we
> could leverage object_new_with_type here.
>
> [make check test pass]
>
> Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
> ---
> qom/object.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/qom/object.c b/qom/object.c
> index 05a8567041..76d2f1eb2f 100644
> --- a/qom/object.c
> +++ b/qom/object.c
> @@ -640,7 +640,7 @@ Object *object_new_with_propv(const char *typename,
> error_setg(errp, "object type '%s' is abstract", typename);
> return NULL;
> }
> - obj = object_new(typename);
> + obj = object_new_with_type(klass->type);
>
> if (object_set_propv(obj, &local_err, vargs) < 0) {
> goto error;
> --
> 2.19.1
>
>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
--
Marc-André Lureau
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH] qom: use object_new_with_type in object_new_with_propv
2019-03-11 17:08 ` Marc-André Lureau
@ 2019-03-11 22:19 ` Wei Yang
0 siblings, 0 replies; 6+ messages in thread
From: Wei Yang @ 2019-03-11 22:19 UTC (permalink / raw)
To: Marc-André Lureau; +Cc: Wei Yang, QEMU, Andreas Färber
On Mon, Mar 11, 2019 at 06:08:10PM +0100, Marc-André Lureau wrote:
>Hi
>
>On Mon, Mar 11, 2019 at 9:34 AM Wei Yang <richardw.yang@linux.intel.com> wrote:
>>
>> Function object_new_with_propv already get the Type of the object, so we
>> could leverage object_new_with_type here.
>>
>> [make check test pass]
>>
>> Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
>> ---
>> qom/object.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/qom/object.c b/qom/object.c
>> index 05a8567041..76d2f1eb2f 100644
>> --- a/qom/object.c
>> +++ b/qom/object.c
>> @@ -640,7 +640,7 @@ Object *object_new_with_propv(const char *typename,
>> error_setg(errp, "object type '%s' is abstract", typename);
>> return NULL;
>> }
>> - obj = object_new(typename);
>> + obj = object_new_with_type(klass->type);
>>
>> if (object_set_propv(obj, &local_err, vargs) < 0) {
>> goto error;
>> --
>> 2.19.1
>>
>>
>
>Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
>
Thanks :-)
>--
>Marc-André Lureau
--
Wei Yang
Help you, Help me
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH] qom: use object_new_with_type in object_new_with_propv
[not found] ` <20190312084313.webcenp43tk3yfmm@steredhat>
@ 2019-04-02 6:27 ` Markus Armbruster
2019-04-11 20:01 ` Laurent Vivier
0 siblings, 1 reply; 6+ messages in thread
From: Markus Armbruster @ 2019-04-02 6:27 UTC (permalink / raw)
To: Stefano Garzarella; +Cc: Wei Yang, qemu-devel, afaerber, qemu-trivial
Stefano Garzarella <sgarzare@redhat.com> writes:
> On Mon, Mar 11, 2019 at 04:32:34PM +0800, Wei Yang wrote:
>> Function object_new_with_propv already get the Type of the object, so we
>> could leverage object_new_with_type here.
>>
>> [make check test pass]
>>
>> Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
>> ---
>> qom/object.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> LGTM. Just a note for future patches:
> I think that info like "[make check test pass]" should go after the
> three dashes to avoid to store it in the commit message.
Yes. Whoever applies should delete this line.
> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Cc: qemu-trivial for merging.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [Qemu-trivial] [PATCH] qom: use object_new_with_type in object_new_with_propv
@ 2019-04-11 20:01 ` Laurent Vivier
0 siblings, 0 replies; 6+ messages in thread
From: Laurent Vivier @ 2019-04-11 20:01 UTC (permalink / raw)
To: Markus Armbruster, Stefano Garzarella
Cc: qemu-trivial, Wei Yang, afaerber, qemu-devel
On 02/04/2019 08:27, Markus Armbruster wrote:
> Stefano Garzarella <sgarzare@redhat.com> writes:
>
>> On Mon, Mar 11, 2019 at 04:32:34PM +0800, Wei Yang wrote:
>>> Function object_new_with_propv already get the Type of the object, so we
>>> could leverage object_new_with_type here.
>>>
>>> [make check test pass]
>>>
>>> Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
>>> ---
>>> qom/object.c | 2 +-
>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> LGTM. Just a note for future patches:
>> I think that info like "[make check test pass]" should go after the
>> three dashes to avoid to store it in the commit message.
>
> Yes. Whoever applies should delete this line.
>
>> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
>
> Cc: qemu-trivial for merging.
>
Applied to my trivial-patches branch with updated commit message.
Thanks,
Laurent
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [Qemu-trivial] [PATCH] qom: use object_new_with_type in object_new_with_propv
@ 2019-04-11 20:01 ` Laurent Vivier
0 siblings, 0 replies; 6+ messages in thread
From: Laurent Vivier @ 2019-04-11 20:01 UTC (permalink / raw)
To: Markus Armbruster, Stefano Garzarella
Cc: qemu-trivial, qemu-devel, Wei Yang, afaerber
On 02/04/2019 08:27, Markus Armbruster wrote:
> Stefano Garzarella <sgarzare@redhat.com> writes:
>
>> On Mon, Mar 11, 2019 at 04:32:34PM +0800, Wei Yang wrote:
>>> Function object_new_with_propv already get the Type of the object, so we
>>> could leverage object_new_with_type here.
>>>
>>> [make check test pass]
>>>
>>> Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
>>> ---
>>> qom/object.c | 2 +-
>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> LGTM. Just a note for future patches:
>> I think that info like "[make check test pass]" should go after the
>> three dashes to avoid to store it in the commit message.
>
> Yes. Whoever applies should delete this line.
>
>> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
>
> Cc: qemu-trivial for merging.
>
Applied to my trivial-patches branch with updated commit message.
Thanks,
Laurent
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2019-04-11 20:08 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-11 8:32 [Qemu-devel] [PATCH] qom: use object_new_with_type in object_new_with_propv Wei Yang
2019-03-11 17:08 ` Marc-André Lureau
2019-03-11 22:19 ` Wei Yang
[not found] ` <20190312084313.webcenp43tk3yfmm@steredhat>
2019-04-02 6:27 ` Markus Armbruster
2019-04-11 20:01 ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
2019-04-11 20:01 ` Laurent Vivier
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.