* [Qemu-devel] [PATCH] hw: set_netdev: remove useless code @ 2018-11-09 8:13 Li Qiang 2018-11-09 8:21 ` Laurent Vivier ` (2 more replies) 0 siblings, 3 replies; 9+ messages in thread From: Li Qiang @ 2018-11-09 8:13 UTC (permalink / raw) To: stefanha, marcandre.lureau, lvivier, thuth; +Cc: qemu-devel, Li Qiang In set_netdev(), the peers[i] is initialized qemu_find_net_clients_except() when i is in 0 between 'queues' it can't be NULL. Signed-off-by: Li Qiang <liq3ea@gmail.com> --- hw/core/qdev-properties-system.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/hw/core/qdev-properties-system.c b/hw/core/qdev-properties-system.c index 8b22fb5..b45a7ef 100644 --- a/hw/core/qdev-properties-system.c +++ b/hw/core/qdev-properties-system.c @@ -288,10 +288,6 @@ static void set_netdev(Object *obj, Visitor *v, const char *name, } for (i = 0; i < queues; i++) { - if (peers[i] == NULL) { - err = -ENOENT; - goto out; - } if (peers[i]->peer) { err = -EEXIST; -- 1.8.3.1 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH] hw: set_netdev: remove useless code 2018-11-09 8:13 [Qemu-devel] [PATCH] hw: set_netdev: remove useless code Li Qiang @ 2018-11-09 8:21 ` Laurent Vivier 2018-11-09 8:26 ` Thomas Huth 2018-11-09 9:07 ` [Qemu-devel] [PATCH] hw: set_netdev: remove useless code Thomas Huth 2018-11-09 9:25 ` Laurent Vivier 2 siblings, 1 reply; 9+ messages in thread From: Laurent Vivier @ 2018-11-09 8:21 UTC (permalink / raw) To: Li Qiang, stefanha, marcandre.lureau, thuth; +Cc: qemu-devel On 09/11/2018 09:13, Li Qiang wrote: > In set_netdev(), the peers[i] is initialized > qemu_find_net_clients_except() when i is in > 0 between 'queues' it can't be NULL. > > Signed-off-by: Li Qiang <liq3ea@gmail.com> > --- > hw/core/qdev-properties-system.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/hw/core/qdev-properties-system.c b/hw/core/qdev-properties-system.c > index 8b22fb5..b45a7ef 100644 > --- a/hw/core/qdev-properties-system.c > +++ b/hw/core/qdev-properties-system.c > @@ -288,10 +288,6 @@ static void set_netdev(Object *obj, Visitor *v, const char *name, > } > > for (i = 0; i < queues; i++) { > - if (peers[i] == NULL) { > - err = -ENOENT; > - goto out; > - } > > if (peers[i]->peer) { > err = -EEXIST; > Reviewed-by: Laurent Vivier <lvivier@redhat.com> ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH] hw: set_netdev: remove useless code 2018-11-09 8:21 ` Laurent Vivier @ 2018-11-09 8:26 ` Thomas Huth 2018-11-09 8:29 ` Laurent Vivier 2018-11-12 8:59 ` [Qemu-devel] qdev has no maintainer (was: [PATCH] hw: set_netdev: remove useless code) Markus Armbruster 0 siblings, 2 replies; 9+ messages in thread From: Thomas Huth @ 2018-11-09 8:26 UTC (permalink / raw) To: Laurent Vivier, Li Qiang, stefanha, marcandre.lureau Cc: qemu-devel, QEMU Trivial, Markus Armbruster, Paolo Bonzini, Peter Maydell On 2018-11-09 09:21, Laurent Vivier wrote: > On 09/11/2018 09:13, Li Qiang wrote: >> In set_netdev(), the peers[i] is initialized >> qemu_find_net_clients_except() when i is in >> 0 between 'queues' it can't be NULL. >> >> Signed-off-by: Li Qiang <liq3ea@gmail.com> >> --- >> hw/core/qdev-properties-system.c | 4 ---- >> 1 file changed, 4 deletions(-) >> >> diff --git a/hw/core/qdev-properties-system.c b/hw/core/qdev-properties-system.c >> index 8b22fb5..b45a7ef 100644 >> --- a/hw/core/qdev-properties-system.c >> +++ b/hw/core/qdev-properties-system.c >> @@ -288,10 +288,6 @@ static void set_netdev(Object *obj, Visitor *v, const char *name, >> } >> >> for (i = 0; i < queues; i++) { >> - if (peers[i] == NULL) { >> - err = -ENOENT; >> - goto out; >> - } >> >> if (peers[i]->peer) { >> err = -EEXIST; >> > > Reviewed-by: Laurent Vivier <lvivier@redhat.com> So who can pick up such patches? We don't have a maintainer for the QDEV subsystem anymore... should it go via qemu-trivial? Thomas ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH] hw: set_netdev: remove useless code 2018-11-09 8:26 ` Thomas Huth @ 2018-11-09 8:29 ` Laurent Vivier 2018-11-09 10:00 ` Paolo Bonzini 2018-11-12 8:59 ` [Qemu-devel] qdev has no maintainer (was: [PATCH] hw: set_netdev: remove useless code) Markus Armbruster 1 sibling, 1 reply; 9+ messages in thread From: Laurent Vivier @ 2018-11-09 8:29 UTC (permalink / raw) To: Thomas Huth, Li Qiang, stefanha, marcandre.lureau Cc: qemu-devel, QEMU Trivial, Markus Armbruster, Paolo Bonzini, Peter Maydell On 09/11/2018 09:26, Thomas Huth wrote: > On 2018-11-09 09:21, Laurent Vivier wrote: >> On 09/11/2018 09:13, Li Qiang wrote: >>> In set_netdev(), the peers[i] is initialized >>> qemu_find_net_clients_except() when i is in >>> 0 between 'queues' it can't be NULL. >>> >>> Signed-off-by: Li Qiang <liq3ea@gmail.com> >>> --- >>> hw/core/qdev-properties-system.c | 4 ---- >>> 1 file changed, 4 deletions(-) >>> >>> diff --git a/hw/core/qdev-properties-system.c b/hw/core/qdev-properties-system.c >>> index 8b22fb5..b45a7ef 100644 >>> --- a/hw/core/qdev-properties-system.c >>> +++ b/hw/core/qdev-properties-system.c >>> @@ -288,10 +288,6 @@ static void set_netdev(Object *obj, Visitor *v, const char *name, >>> } >>> >>> for (i = 0; i < queues; i++) { >>> - if (peers[i] == NULL) { >>> - err = -ENOENT; >>> - goto out; >>> - } >>> >>> if (peers[i]->peer) { >>> err = -EEXIST; >>> >> >> Reviewed-by: Laurent Vivier <lvivier@redhat.com> > > So who can pick up such patches? We don't have a maintainer for the QDEV > subsystem anymore... should it go via qemu-trivial? It seems trivial enough to go via qemu-trivial, but it would be good to have a R-b from someone else than me to confirm. Thanks, Laurent ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH] hw: set_netdev: remove useless code 2018-11-09 8:29 ` Laurent Vivier @ 2018-11-09 10:00 ` Paolo Bonzini 2018-11-09 10:59 ` Laurent Vivier 0 siblings, 1 reply; 9+ messages in thread From: Paolo Bonzini @ 2018-11-09 10:00 UTC (permalink / raw) To: Laurent Vivier, Thomas Huth, Li Qiang, stefanha, marcandre.lureau Cc: qemu-devel, QEMU Trivial, Markus Armbruster, Peter Maydell On 09/11/2018 09:29, Laurent Vivier wrote: > On 09/11/2018 09:26, Thomas Huth wrote: >> On 2018-11-09 09:21, Laurent Vivier wrote: >>> On 09/11/2018 09:13, Li Qiang wrote: >>>> In set_netdev(), the peers[i] is initialized >>>> qemu_find_net_clients_except() when i is in >>>> 0 between 'queues' it can't be NULL. >>>> >>>> Signed-off-by: Li Qiang <liq3ea@gmail.com> >>>> --- >>>> hw/core/qdev-properties-system.c | 4 ---- >>>> 1 file changed, 4 deletions(-) >>>> >>>> diff --git a/hw/core/qdev-properties-system.c b/hw/core/qdev-properties-system.c >>>> index 8b22fb5..b45a7ef 100644 >>>> --- a/hw/core/qdev-properties-system.c >>>> +++ b/hw/core/qdev-properties-system.c >>>> @@ -288,10 +288,6 @@ static void set_netdev(Object *obj, Visitor *v, const char *name, >>>> } >>>> >>>> for (i = 0; i < queues; i++) { >>>> - if (peers[i] == NULL) { >>>> - err = -ENOENT; >>>> - goto out; >>>> - } >>>> >>>> if (peers[i]->peer) { >>>> err = -EEXIST; >>>> >>> >>> Reviewed-by: Laurent Vivier <lvivier@redhat.com> >> >> So who can pick up such patches? We don't have a maintainer for the QDEV >> subsystem anymore... should it go via qemu-trivial? > > It seems trivial enough to go via qemu-trivial, but it would be good to > have a R-b from someone else than me to confirm. I would have expected Jason to pick it up, after all it's networking, but it's okay if you want to take it too. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Thanks, Paolo ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH] hw: set_netdev: remove useless code 2018-11-09 10:00 ` Paolo Bonzini @ 2018-11-09 10:59 ` Laurent Vivier 0 siblings, 0 replies; 9+ messages in thread From: Laurent Vivier @ 2018-11-09 10:59 UTC (permalink / raw) To: Paolo Bonzini, Laurent Vivier, Thomas Huth, Li Qiang, stefanha, marcandre.lureau Cc: QEMU Trivial, Peter Maydell, qemu-devel, Markus Armbruster On 09/11/2018 11:00, Paolo Bonzini wrote: > On 09/11/2018 09:29, Laurent Vivier wrote: >> On 09/11/2018 09:26, Thomas Huth wrote: >>> On 2018-11-09 09:21, Laurent Vivier wrote: >>>> On 09/11/2018 09:13, Li Qiang wrote: >>>>> In set_netdev(), the peers[i] is initialized >>>>> qemu_find_net_clients_except() when i is in >>>>> 0 between 'queues' it can't be NULL. >>>>> >>>>> Signed-off-by: Li Qiang <liq3ea@gmail.com> >>>>> --- >>>>> hw/core/qdev-properties-system.c | 4 ---- >>>>> 1 file changed, 4 deletions(-) >>>>> >>>>> diff --git a/hw/core/qdev-properties-system.c b/hw/core/qdev-properties-system.c >>>>> index 8b22fb5..b45a7ef 100644 >>>>> --- a/hw/core/qdev-properties-system.c >>>>> +++ b/hw/core/qdev-properties-system.c >>>>> @@ -288,10 +288,6 @@ static void set_netdev(Object *obj, Visitor *v, const char *name, >>>>> } >>>>> >>>>> for (i = 0; i < queues; i++) { >>>>> - if (peers[i] == NULL) { >>>>> - err = -ENOENT; >>>>> - goto out; >>>>> - } >>>>> >>>>> if (peers[i]->peer) { >>>>> err = -EEXIST; >>>>> >>>> >>>> Reviewed-by: Laurent Vivier <lvivier@redhat.com> >>> >>> So who can pick up such patches? We don't have a maintainer for the QDEV >>> subsystem anymore... should it go via qemu-trivial? >> >> It seems trivial enough to go via qemu-trivial, but it would be good to >> have a R-b from someone else than me to confirm. > > I would have expected Jason to pick it up, after all it's networking, > but it's okay if you want to take it too. If Jason pushes it before I do, I will remove it from my queue. [I have the bad habit to rebase by branch before a pull request] Thanks, Laurent ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Qemu-devel] qdev has no maintainer (was: [PATCH] hw: set_netdev: remove useless code) 2018-11-09 8:26 ` Thomas Huth 2018-11-09 8:29 ` Laurent Vivier @ 2018-11-12 8:59 ` Markus Armbruster 1 sibling, 0 replies; 9+ messages in thread From: Markus Armbruster @ 2018-11-12 8:59 UTC (permalink / raw) To: Thomas Huth Cc: Laurent Vivier, Li Qiang, stefanha, marcandre.lureau, Paolo Bonzini, Peter Maydell, qemu-devel Thomas Huth <thuth@redhat.com> writes: > On 2018-11-09 09:21, Laurent Vivier wrote: >> On 09/11/2018 09:13, Li Qiang wrote: >>> In set_netdev(), the peers[i] is initialized >>> qemu_find_net_clients_except() when i is in >>> 0 between 'queues' it can't be NULL. >>> >>> Signed-off-by: Li Qiang <liq3ea@gmail.com> >>> --- >>> hw/core/qdev-properties-system.c | 4 ---- >>> 1 file changed, 4 deletions(-) >>> >>> diff --git a/hw/core/qdev-properties-system.c b/hw/core/qdev-properties-system.c >>> index 8b22fb5..b45a7ef 100644 >>> --- a/hw/core/qdev-properties-system.c >>> +++ b/hw/core/qdev-properties-system.c >>> @@ -288,10 +288,6 @@ static void set_netdev(Object *obj, Visitor *v, const char *name, >>> } >>> >>> for (i = 0; i < queues; i++) { >>> - if (peers[i] == NULL) { >>> - err = -ENOENT; >>> - goto out; >>> - } >>> >>> if (peers[i]->peer) { >>> err = -EEXIST; >>> >> >> Reviewed-by: Laurent Vivier <lvivier@redhat.com> > > So who can pick up such patches? We don't have a maintainer for the QDEV > subsystem anymore... should it go via qemu-trivial? We've never had a formal qdev maintainer. "qdev is too important to continue much longer without a maintainer." Message-ID: <m37h8v85r7.fsf@blackfin.pond.sub.org> https://lists.gnu.org/archive/html/qemu-devel/2011-06/msg01053.html The closest we got to appointing one was probably here: Message-ID: <56B33C2A.8030405@redhat.com> https://lists.gnu.org/archive/html/qemu-devel/2016-02/msg00949.html In my opinion, not having a maintainer push or at least direct the cart is one of the reasons of the relatively sad state of qdev. Same for QOM, where we had an active maintainer for a while, but no more. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH] hw: set_netdev: remove useless code 2018-11-09 8:13 [Qemu-devel] [PATCH] hw: set_netdev: remove useless code Li Qiang 2018-11-09 8:21 ` Laurent Vivier @ 2018-11-09 9:07 ` Thomas Huth 2018-11-09 9:25 ` Laurent Vivier 2 siblings, 0 replies; 9+ messages in thread From: Thomas Huth @ 2018-11-09 9:07 UTC (permalink / raw) To: Li Qiang, stefanha, marcandre.lureau, lvivier; +Cc: qemu-devel On 2018-11-09 09:13, Li Qiang wrote: > In set_netdev(), the peers[i] is initialized > qemu_find_net_clients_except() when i is in > 0 between 'queues' it can't be NULL. > > Signed-off-by: Li Qiang <liq3ea@gmail.com> > --- > hw/core/qdev-properties-system.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/hw/core/qdev-properties-system.c b/hw/core/qdev-properties-system.c > index 8b22fb5..b45a7ef 100644 > --- a/hw/core/qdev-properties-system.c > +++ b/hw/core/qdev-properties-system.c > @@ -288,10 +288,6 @@ static void set_netdev(Object *obj, Visitor *v, const char *name, > } > > for (i = 0; i < queues; i++) { > - if (peers[i] == NULL) { > - err = -ENOENT; > - goto out; > - } > > if (peers[i]->peer) { > err = -EEXIST; > Reviewed-by: Thomas Huth <thuth@redhat.com> ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH] hw: set_netdev: remove useless code 2018-11-09 8:13 [Qemu-devel] [PATCH] hw: set_netdev: remove useless code Li Qiang 2018-11-09 8:21 ` Laurent Vivier 2018-11-09 9:07 ` [Qemu-devel] [PATCH] hw: set_netdev: remove useless code Thomas Huth @ 2018-11-09 9:25 ` Laurent Vivier 2 siblings, 0 replies; 9+ messages in thread From: Laurent Vivier @ 2018-11-09 9:25 UTC (permalink / raw) To: Li Qiang, stefanha, marcandre.lureau, lvivier, thuth; +Cc: qemu-devel On 09/11/2018 09:13, Li Qiang wrote: > In set_netdev(), the peers[i] is initialized > qemu_find_net_clients_except() when i is in > 0 between 'queues' it can't be NULL. > > Signed-off-by: Li Qiang <liq3ea@gmail.com> > --- > hw/core/qdev-properties-system.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/hw/core/qdev-properties-system.c b/hw/core/qdev-properties-system.c > index 8b22fb5..b45a7ef 100644 > --- a/hw/core/qdev-properties-system.c > +++ b/hw/core/qdev-properties-system.c > @@ -288,10 +288,6 @@ static void set_netdev(Object *obj, Visitor *v, const char *name, > } > > for (i = 0; i < queues; i++) { > - if (peers[i] == NULL) { > - err = -ENOENT; > - goto out; > - } > > if (peers[i]->peer) { > err = -EEXIST; > Applied to my trivial-patches branch. Thanks, Laurent ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2018-11-12 9:00 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2018-11-09 8:13 [Qemu-devel] [PATCH] hw: set_netdev: remove useless code Li Qiang 2018-11-09 8:21 ` Laurent Vivier 2018-11-09 8:26 ` Thomas Huth 2018-11-09 8:29 ` Laurent Vivier 2018-11-09 10:00 ` Paolo Bonzini 2018-11-09 10:59 ` Laurent Vivier 2018-11-12 8:59 ` [Qemu-devel] qdev has no maintainer (was: [PATCH] hw: set_netdev: remove useless code) Markus Armbruster 2018-11-09 9:07 ` [Qemu-devel] [PATCH] hw: set_netdev: remove useless code Thomas Huth 2018-11-09 9:25 ` Laurent Vivier
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).