Received: from eggs.gnu.org ([2001:4830:134:3::10]:56455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnhzm-0000Cb-Kj for qemu-devel@nongnu.org; Fri, 01 Sep 2017 05:12:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dnhzi-0005df-8G for qemu-devel@nongnu.org; Fri, 01 Sep 2017 05:12:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46884) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dnhzh-0005dT-WB for qemu-devel@nongnu.org; Fri, 01 Sep 2017 05:12:06 -0400 From: Markus Armbruster References: <20170831035306.29170-1-f4bug@amsat.org> <20170831035306.29170-2-f4bug@amsat.org> <6847dc61-6097-33b4-b3af-5b8da52442d1@redhat.com> Date: Fri, 01 Sep 2017 11:12:01 +0200 In-Reply-To: ("Philippe =?utf-8?Q?Mathieu-Daud=C3=A9=22's?= message of "Thu, 31 Aug 2017 12:24:01 -0300") Message-ID: <87k21idbq6.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 1/7] serial: add serial_chr_nonnull() to use the null backend when none provided List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= Cc: Thomas Huth , =?utf-8?Q?Marc-Andr=C3=A9?= Lureau , Paolo Bonzini , Peter Maydell , qemu-devel@nongnu.org, "Michael S. Tsirkin" Philippe Mathieu-Daud=C3=A9 writes: > On 08/31/2017 06:43 AM, Thomas Huth wrote: >> On 31.08.2017 11:36, Marc-Andr=C3=A9 Lureau wrote: >>> Hi >>> >>> On Thu, Aug 31, 2017 at 7:20 AM Thomas Huth >> > wrote: >>> >>> On 31.08.2017 05:53, Philippe Mathieu-Daud=C3=A9 wrote: >>> > Suggested-by: Peter Maydell >> > >>> > Signed-off-by: Philippe Mathieu-Daud=C3=A9 >> > >>> > --- >>> >=C2=A0 include/hw/char/serial.h |=C2=A0 1 + >>> >=C2=A0 hw/char/serial.c=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| 13 +++= ++++++++++ >>> >=C2=A0 2 files changed, 14 insertions(+) >>> > >>> > diff --git a/include/hw/char/serial.h b/include/hw/char/serial.h >>> > index c4daf11a14..96bccb39e1 100644 >>> > --- a/include/hw/char/serial.h >>> > +++ b/include/hw/char/serial.h >>> > @@ -93,6 +93,7 @@ SerialState *serial_mm_init(MemoryRegion >>> *address_space, >>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 hwaddr base, int it_shift, >>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 qemu_irq irq, int baudbase, >>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Chardev *chr, enum device_endian = end); >>> > +Chardev *serial_chr_nonnull(Chardev *chr); >>> >>> Why do you need the prototype? Please make the function static if >>> possible (otherwise please add some rationale in the patch descrip= tion). >>> >>> It's being used from other units in following patches >> >> Ah, well, right. I was only on CC: in the first two patches, so I missed >> the other ones at the first glance. So never mind my comment, the >> prototype is fine here. > > Is it better/easier to use the same list for the cover and all the patche= s? > I try to shorten the it to help overloaded reviewer to focus on the > patches I think they can help. But this case show it's not that > useful. Clear an unequivocal answer: it depends :)