From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWnxh-0001MO-G8 for qemu-devel@nongnu.org; Tue, 01 Sep 2015 11:59:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWnxb-0003Cs-Nm for qemu-devel@nongnu.org; Tue, 01 Sep 2015 11:59:05 -0400 Received: from mail-vk0-f46.google.com ([209.85.213.46]:35390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWnxb-0003Co-CB for qemu-devel@nongnu.org; Tue, 01 Sep 2015 11:58:59 -0400 Received: by vkaw128 with SMTP id w128so59310867vka.2 for ; Tue, 01 Sep 2015 08:58:59 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1440615870-9518-3-git-send-email-wei@redhat.com> References: <1440615870-9518-1-git-send-email-wei@redhat.com> <1440615870-9518-3-git-send-email-wei@redhat.com> From: Peter Maydell Date: Tue, 1 Sep 2015 16:58:39 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [ARM SMBIOS V5 PATCH 2/2] smbios: implement smbios support for mach-virt List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wei Huang Cc: Andrew Jones , Ard Biesheuvel , Eduardo Habkost , Ivan Khoronzhuk , "Michael S. Tsirkin" , "Gabriel L. Somlo" , Shannon Zhao , QEMU Developers , Leif Lindholm , Roy Franz , Igor Mammedov , Paolo Bonzini , Laszlo Ersek , jdelvare@suse.de, Richard Henderson On 26 August 2015 at 20:04, Wei Huang wrote: > This patch generates smbios tables for ARM mach-virt. Also add > CONFIG_SMBIOS=y for ARM default config. > > Acked-by: Gabriel Somlo > Tested-by: Gabriel Somlo > Reviewed-by: Laszlo Ersek > Reviewed-by: Shannon Zhao > Tested-by: Leif Lindholm > Signed-off-by: Wei Huang > +static void virt_build_smbios(VirtGuestInfo *guest_info) > +{ > + FWCfgState *fw_cfg = guest_info->fw_cfg; > + uint8_t *smbios_tables, *smbios_anchor; > + size_t smbios_tables_len, smbios_anchor_len; > + > + if (!fw_cfg) > + return; Missing braces for if (). You can catch this sort of thing yourself by running scripts/checkpatch.pl on your patches. In this case this looks like the only issue with this patchset, so I'll fix it when I put it into target-arm.next. thanks -- PMM