Received: from eggs.gnu.org ([2001:4830:134:3::10]:50023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bonOu-0001aa-Q3 for qemu-devel@nongnu.org; Tue, 27 Sep 2016 04:06:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bonOq-0004iG-81 for qemu-devel@nongnu.org; Tue, 27 Sep 2016 04:06:04 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:38907 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bonOq-0004hr-38 for qemu-devel@nongnu.org; Tue, 27 Sep 2016 04:06:00 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u8R82kAc101855 for ; Tue, 27 Sep 2016 04:05:58 -0400 Received: from e06smtp06.uk.ibm.com (e06smtp06.uk.ibm.com [195.75.94.102]) by mx0b-001b2d01.pphosted.com with ESMTP id 25qgwthtjw-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 27 Sep 2016 04:05:58 -0400 Received: from localhost by e06smtp06.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 27 Sep 2016 09:05:56 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 4F8D9219004D for ; Tue, 27 Sep 2016 09:05:14 +0100 (BST) Received: from d06av10.portsmouth.uk.ibm.com (d06av10.portsmouth.uk.ibm.com [9.149.37.251]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u8R85sLS3211748 for ; Tue, 27 Sep 2016 08:05:54 GMT Received: from d06av10.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av10.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u8R75uUb020109 for ; Tue, 27 Sep 2016 01:05:56 -0600 References: <1474607430-26500-1-git-send-email-famz@redhat.com> <1474607430-26500-11-git-send-email-famz@redhat.com> From: Christian Borntraeger Date: Tue, 27 Sep 2016 10:05:53 +0200 MIME-Version: 1.0 In-Reply-To: <1474607430-26500-11-git-send-email-famz@redhat.com> Content-Type: text/plain; charset=windows-1252 Message-Id: Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PULL 10/23] vl: Switch qemu_uuid to QemuUUID List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng , qemu-devel@nongnu.org Cc: Peter Maydell On 09/23/2016 07:10 AM, Fam Zheng wrote: > Update all qemu_uuid users as well, especially get rid of the duplicate= d > low level g_strdup_printf, sscanf and snprintf calls with QEMU UUID API. >=20 > Since qemu_uuid_parse is quite tangled with qemu_uuid, its switching to > QemuUUID is done here too to keep everything in sync and avoid code > churn. >=20 > Signed-off-by: Fam Zheng > Reviewed-by: Eric Blake > Reviewed-by: Jeff Cody > Message-Id: <1474432046-325-10-git-send-email-famz@redhat.com> > --- > hw/ipmi/ipmi_bmc_sim.c | 2 +- > hw/nvram/fw_cfg.c | 2 +- > hw/ppc/spapr.c | 7 +------ > hw/ppc/spapr_rtas.c | 3 ++- > hw/smbios/smbios.c | 12 ++++++------ > hw/xenpv/xen_domainbuild.c | 6 +----- > include/qemu/uuid.h | 2 +- > include/sysemu/sysemu.h | 3 ++- > qmp.c | 10 ++-------- > ui/spice-core.c | 2 +- > util/uuid.c | 11 ++++++----- > vl.c | 6 +++--- > 12 files changed, 27 insertions(+), 39 deletions(-) >=20 This broke s390/kvm make: Entering directory '/home/cborntra/REPOS/qemu/build' CC s390x-softmmu/target-s390x/kvm.o /home/cborntra/REPOS/qemu/target-s390x/kvm.c: In function =91insert_stsi_= 3_2_2=92: /home/cborntra/REPOS/qemu/target-s390x/kvm.c:2002:30: error: incompatible= type for argument 2 of =91memcpy=92 memcpy(sysib.vm[0].uuid, qemu_uuid, sizeof(sysib.vm[0].uuid)); ^ In file included from /usr/include/features.h:365:0, from /usr/include/stdint.h:25, from /usr/lib/gcc/s390x-redhat-linux/5.3.1/include/stdin= t.h:9, from /home/cborntra/REPOS/qemu/include/qemu/osdep.h:65, from /home/cborntra/REPOS/qemu/target-s390x/kvm.c:24: /usr/include/bits/string3.h:50:1: note: expected =91const void * restrict= =92 but argument is of type =91QemuUUID {aka struct }=92 __NTH (memcpy (void *__restrict __dest, const void *__restrict __src, ^ /home/cborntra/REPOS/qemu/rules.mak:60: recipe for target 'target-s390x/k= vm.o' failed Will send a fix.