From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33369) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dIrgG-0002c0-LZ for qemu-devel@nongnu.org; Thu, 08 Jun 2017 03:16:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dIrgD-0003fF-HS for qemu-devel@nongnu.org; Thu, 08 Jun 2017 03:16:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50312) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dIrgD-0003f5-BO for qemu-devel@nongnu.org; Thu, 08 Jun 2017 03:16:29 -0400 Date: Thu, 8 Jun 2017 03:16:26 -0400 (EDT) From: =?utf-8?Q?Marc-Andr=C3=A9?= Lureau Message-ID: <139132138.31602801.1496906186264.JavaMail.zimbra@redhat.com> In-Reply-To: <87o9tzj6p1.fsf@dusky.pond.sub.org> References: <20170607184921.28407-1-marcandre.lureau@redhat.com> <20170607184921.28407-2-marcandre.lureau@redhat.com> <87o9tzj6p1.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/3] char: fix alias devices regression List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: qemu-devel@nongnu.org, anthony perard , pbonzini@redhat.com Hi ----- Original Message ----- > Marc-Andr=C3=A9 Lureau writes: >=20 > > Fix regression from commit 4d43a603c71, where the serial and parallel > > headers got removed from char.c, which broke the alias table. > > > > Signed-off-by: Marc-Andr=C3=A9 Lureau > > --- > > chardev/char.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/chardev/char.c b/chardev/char.c > > index 7aa0210765..f38fac5c6b 100644 > > --- a/chardev/char.c > > +++ b/chardev/char.c > > @@ -34,6 +34,8 @@ > > #include "qemu/help_option.h" > > =20 > > #include "chardev/char-mux.h" > > +#include "chardev/char-parallel.h" /* for HAVE_CHARDEV_PARPORT */ > > +#include "chardev/char-serial.h" /* for HAVE_CHARDEV_SERIAL */ > > =20 > > /***********************************************************/ > > /* character device */ >=20 > Two drive-by observations: >=20 > * Putting HAVE_FOOs in random headers, then testing them with #ifdef is > asking for trouble. Anything you test with #ifdef should be there > after #include "qemu/osdep.h" at the latest, or be defined in the same > .c. >=20 I agree, is it fine to move those HAVE_FOO there? > * Such comments after #include rot quickly. Strong dislike. Well, if that comment would have been there, there would have been less cha= nce to remove the header by mistake, even if it rotted.