Received: from eggs.gnu.org ([2001:4830:134:3::10]:43667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ypdys-0006HN-H9 for qemu-devel@nongnu.org; Tue, 05 May 2015 10:37:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ypdyo-0006BG-JO for qemu-devel@nongnu.org; Tue, 05 May 2015 10:37:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40792) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ypdyo-0006B0-DD for qemu-devel@nongnu.org; Tue, 05 May 2015 10:37:50 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 122088F026 for ; Tue, 5 May 2015 14:37:50 +0000 (UTC) From: Markus Armbruster References: <1430818249-12107-1-git-send-email-mrezanin@redhat.com> Date: Tue, 05 May 2015 16:37:47 +0200 In-Reply-To: <1430818249-12107-1-git-send-email-mrezanin@redhat.com> (mrezanin@redhat.com's message of "Tue, 5 May 2015 11:30:49 +0200") Message-ID: <87pp6fqedg.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] parallel: Allow to disable CONFIG_PARALLEL List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: mrezanin@redhat.com Cc: qemu-devel@nongnu.org mrezanin@redhat.com writes: > From: Miroslav Rezanina > > Disabling CONFIG_PARALLEL cause build failure as commit 07dc788 factored > out initialization to parallel_hds_isa_init that is not build. > > Make calling parallel_hds_isa_init depending on CONFIG_PARALLEL so it can > be correctly disabled. > > Signed-off-by: Miroslav Rezanina Sorry for breaking this. Hope I didn't break more in the same series. Have you tried CONFIG_SERIAL? > --- > hw/i386/pc.c | 2 ++ > hw/mips/mips_fulong2e.c | 2 ++ > hw/mips/mips_malta.c | 2 ++ > hw/sparc64/sun4u.c | 2 ++ > 4 files changed, 8 insertions(+) > > diff --git a/hw/i386/pc.c b/hw/i386/pc.c > index a8e6be1..560464e 100644 > --- a/hw/i386/pc.c > +++ b/hw/i386/pc.c > @@ -1465,7 +1465,9 @@ void pc_basic_device_init(ISABus *isa_bus, qemu_irq *gsi, > } > > serial_hds_isa_init(isa_bus, MAX_SERIAL_PORTS); > +#ifdef CONFIG_PARALLEL > parallel_hds_isa_init(isa_bus, MAX_PARALLEL_PORTS); > +#endif > > a20_line = qemu_allocate_irqs(handle_a20_line_change, first_cpu, 2); > i8042 = isa_create_simple(isa_bus, "i8042"); We could confine the #ifdef to just one place, by doing patching pc.h like +#ifdef CONFIG_PARALLEL void parallel_hds_isa_init(ISABus *bus, int n); +#else +static inline void parallel_hds_isa_init(ISABus *bus, int n) { } +#endif But I'm fine with your patch as is. Reviewed-by: Markus Armbruster