Received: from eggs.gnu.org ([2001:4830:134:3::10]:58935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3gTF-0006y8-00 for qemu-devel@nongnu.org; Fri, 20 May 2016 05:11:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b3gT9-0006ea-Ub for qemu-devel@nongnu.org; Fri, 20 May 2016 05:11:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3gT9-0006eT-OW for qemu-devel@nongnu.org; Fri, 20 May 2016 05:11:43 -0400 Date: Fri, 20 May 2016 11:11:40 +0200 From: Igor Mammedov Message-ID: <20160520111140.4e6d03c8@nial.brq.redhat.com> In-Reply-To: <1463671442-15631-5-git-send-email-minyard@acm.org> References: <1463671442-15631-1-git-send-email-minyard@acm.org> <1463671442-15631-5-git-send-email-minyard@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v5 4/6] ipmi: Add SMBIOS table entry List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: minyard@acm.org Cc: "Michael S . Tsirkin" , Paolo Bonzini , qemu-devel@nongnu.org, cminyard@mvista.com On Thu, 19 May 2016 10:24:00 -0500 minyard@acm.org wrote: > From: Corey Minyard > > Add an IPMI table entry to the SMBIOS. > > Signed-off-by: Corey Minyard > Acked-by: Michael S. Tsirkin > --- > hw/smbios/Makefile.objs | 2 + > hw/smbios/ipmi.c | 114 +++++++++++++++++++++++++++++++++++++++++++++++ > hw/smbios/noipmi.c | 14 ++++++ > hw/smbios/smbios.c | 2 + > include/hw/smbios/ipmi.h | 15 +++++++ > 5 files changed, 147 insertions(+) > create mode 100644 hw/smbios/ipmi.c > create mode 100644 hw/smbios/noipmi.c > create mode 100644 include/hw/smbios/ipmi.h > > diff --git a/hw/smbios/Makefile.objs b/hw/smbios/Makefile.objs > index f69a92f..5578f51 100644 > --- a/hw/smbios/Makefile.objs > +++ b/hw/smbios/Makefile.objs > @@ -1 +1,3 @@ > common-obj-$(CONFIG_SMBIOS) += smbios.o > +common-obj-$(call land,$(CONFIG_SMBIOS),$(CONFIG_IPMI)) += ipmi.o > +common-obj-$(call land,$(CONFIG_SMBIOS),$(call lnot,$(CONFIG_IPMI))) += noipmi.o why not use existing stub approach instead of adding conditional for noipmi.o? [...] > diff --git a/hw/smbios/noipmi.c b/hw/smbios/noipmi.c this file should be in a/hw/stubs/ and maybe s/noipmi.c/smbios_type_38.c/ > new file mode 100644 > index 0000000..ad669a4 > --- /dev/null > +++ b/hw/smbios/noipmi.c > @@ -0,0 +1,14 @@ > +/* > + * IPMI SMBIOS firmware handling > + * > + * Copyright (c) 2015 Corey Minyard, MontaVista Software, LLC > + * > + * This work is licensed under the terms of the GNU GPL, version 2 or later. > + * See the COPYING file in the top-level directory. > + */ > + > +#include "hw/smbios/ipmi.h" > + > +void smbios_build_type_38_table(void) > +{ > +} [...]