qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Christian Borntraeger <borntraeger@de.ibm.com>
To: Fam Zheng <famz@redhat.com>, qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>
Subject: Re: [Qemu-devel] [PULL 10/23] vl: Switch qemu_uuid to QemuUUID
Date: Tue, 27 Sep 2016 10:05:53 +0200	[thread overview]
Message-ID: <e15695ec-249b-bcc6-102c-37afde26f917@de.ibm.com> (raw)
In-Reply-To: <1474607430-26500-11-git-send-email-famz@redhat.com>

On 09/23/2016 07:10 AM, Fam Zheng wrote:
> Update all qemu_uuid users as well, especially get rid of the duplicated
> low level g_strdup_printf, sscanf and snprintf calls with QEMU UUID API.
> 
> 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.
> 
> Signed-off-by: Fam Zheng <famz@redhat.com>
> Reviewed-by: Eric Blake <eblake@redhat.com>
> Reviewed-by: Jeff Cody <jcody@redhat.com>
> 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(-)
> 

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 ‘insert_stsi_3_2_2’:
/home/cborntra/REPOS/qemu/target-s390x/kvm.c:2002:30: error: incompatible type for argument 2 of ‘memcpy’
     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/stdint.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 ‘const void * restrict’ but argument is of type ‘QemuUUID {aka struct <anonymous>}’
 __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
 ^
/home/cborntra/REPOS/qemu/rules.mak:60: recipe for target 'target-s390x/kvm.o' failed




Will send a fix.

  reply	other threads:[~2016-09-27  8:06 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-23  5:10 [Qemu-devel] [PULL 00/23] Various patches Fam Zheng
2016-09-23  5:10 ` [Qemu-devel] [PULL 01/23] docker: Handle exceptions when looking for docker command Fam Zheng
2016-09-23  5:10 ` [Qemu-devel] [PULL 02/23] util: Add UUID API Fam Zheng
2016-09-23  5:10 ` [Qemu-devel] [PULL 03/23] uuid: Make null_uuid static Fam Zheng
2016-09-23  5:10 ` [Qemu-devel] [PULL 04/23] vhdx: Use QEMU UUID API Fam Zheng
2016-09-23  5:10 ` [Qemu-devel] [PULL 05/23] vdi: " Fam Zheng
2016-09-23  5:10 ` [Qemu-devel] [PULL 06/23] vpc: " Fam Zheng
2016-09-23  5:10 ` [Qemu-devel] [PULL 07/23] crypto: Switch to " Fam Zheng
2016-09-23  5:10 ` [Qemu-devel] [PULL 08/23] tests: No longer dependent on CONFIG_UUID Fam Zheng
2016-09-23  5:10 ` [Qemu-devel] [PULL 09/23] configure: Remove detection code for UUID Fam Zheng
2016-09-23  5:10 ` [Qemu-devel] [PULL 10/23] vl: Switch qemu_uuid to QemuUUID Fam Zheng
2016-09-27  8:05   ` Christian Borntraeger [this message]
2016-09-27  8:13     ` Fam Zheng
2016-09-23  5:10 ` [Qemu-devel] [PULL 11/23] uuid: Tighten uuid parse Fam Zheng
2016-09-23  5:10 ` [Qemu-devel] [PULL 12/23] tests: Add uuid tests Fam Zheng
2016-09-23  5:10 ` [Qemu-devel] [PULL 13/23] Add UUID files to MAINTAINERS Fam Zheng
2016-09-23  5:10 ` [Qemu-devel] [PULL 14/23] tests: Ignore test-uuid Fam Zheng
2016-09-23  5:10 ` [Qemu-devel] [PULL 15/23] docker: Generate /packages.txt in centos6 image Fam Zheng
2016-09-23  5:10 ` [Qemu-devel] [PULL 16/23] docker: Generate /packages.txt in fedora image Fam Zheng
2016-09-23  5:10 ` [Qemu-devel] [PULL 17/23] docker: Generate /packages.txt in ubuntu image Fam Zheng
2016-09-23  5:10 ` [Qemu-devel] [PULL 18/23] docker: Update fedora image to latest Fam Zheng
2016-09-23  5:10 ` [Qemu-devel] [PULL 19/23] docker: Flatten default target list in test-quick Fam Zheng
2016-09-23  5:10 ` [Qemu-devel] [PULL 20/23] docker: Print used options before doing configure Fam Zheng
2016-09-23  5:10 ` [Qemu-devel] [PULL 21/23] docker: Support showing environment information Fam Zheng
2016-09-23  5:10 ` [Qemu-devel] [PULL 22/23] docker: Terminate instances at SIGTERM and SIGHUP Fam Zheng
2016-09-23  5:10 ` [Qemu-devel] [PULL 23/23] docker: exec $CMD Fam Zheng
2016-09-23 13:25 ` [Qemu-devel] [PULL 00/23] Various patches Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e15695ec-249b-bcc6-102c-37afde26f917@de.ibm.com \
    --to=borntraeger@de.ibm.com \
    --cc=famz@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).