From: Cornelia Huck <cornelia.huck@de.ibm.com>
To: Thomas Huth <thuth@redhat.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
Christian Borntraeger <borntraeger@de.ibm.com>,
Jens Freimann <jfrei@linux.vnet.ibm.com>,
Alexander Graf <agraf@suse.de>,
QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PULL 00/12] s390x update
Date: Fri, 20 Jan 2017 11:00:44 +0100 [thread overview]
Message-ID: <20170120110044.2127c9a9.cornelia.huck@de.ibm.com> (raw)
In-Reply-To: <b3558860-1ef6-d39a-4b4f-bd5e042c84bb@redhat.com>
On Fri, 20 Jan 2017 10:52:26 +0100
Thomas Huth <thuth@redhat.com> wrote:
> On 20.01.2017 10:21, Cornelia Huck wrote:
> > On Thu, 19 Jan 2017 18:32:44 +0000
> > Peter Maydell <peter.maydell@linaro.org> wrote:
> >
> >> Hi; I'm afraid this fails to build on Windows:
> >>
> >> /home/petmay01/linaro/qemu-for-merges/hw/s390x/s390-pci-bus.c: In
> >> function ‘s390_pci_get_iommu’:
> >> /home/petmay01/linaro/qemu-for-merges/hw/s390x/s390-pci-bus.c:415:20:
> >> error: cast from pointer to integer of different size
> >> [-Werror=pointer-to-int-cast]
> >> uint64_t key = (unsigned long)bus;
> >> ^
> >> /home/petmay01/linaro/qemu-for-merges/hw/s390x/s390-pci-bus.c: In
> >> function ‘s390_pci_iommu_free’:
> >> /home/petmay01/linaro/qemu-for-merges/hw/s390x/s390-pci-bus.c:539:20:
> >> error: cast from pointer to integer of different size
> >> [-Werror=pointer-to-int-cast]
> >> uint64_t key = (unsigned long)bus;
> >> ^
> >> cc1: all warnings being treated as errors
> >>
> >>
> >> You probably wanted uintptr_t.
> >
> > Fixed and v2 sent.
> >
> > I'm wondering if there is any way to catch this earlier (without
> > actually building on Windows)? My mingw 4.8.2 cross-build worked fine...
>
> You likely got to use the 32-bit version of MinGW (or compile with -m32
> with any other version of GCC) to catch this issue, so that you get
> sizeof(long) != sizeof(void *).
Well, I already do that (mingw32, and I see -m32 on the command line;
that already caught sizeof(uint64_t) != sizeof(void *) here.) But isn't
sizeof(long) == sizeof(void *) even in the -m32 case?
next prev parent reply other threads:[~2017-01-20 10:00 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-17 8:56 [Qemu-devel] [PULL 00/12] s390x update Cornelia Huck
2017-01-17 8:56 ` [Qemu-devel] [PULL 01/12] s390x: remove double compat statement Cornelia Huck
2017-01-17 8:56 ` [Qemu-devel] [PULL 02/12] s390x: add compat machine for 2.9 Cornelia Huck
2017-01-17 8:56 ` [Qemu-devel] [PULL 03/12] s390x/kvm: use kvm_gsi_routing_enabled in flic Cornelia Huck
2017-01-17 8:56 ` [Qemu-devel] [PULL 04/12] s390x/pci: make S390PCIIOMMU inherit Object Cornelia Huck
2017-01-17 8:56 ` [Qemu-devel] [PULL 05/12] s390x/pci: dynamically allocate iommu Cornelia Huck
2017-01-17 8:56 ` [Qemu-devel] [PULL 06/12] s390x/pci: change the device array to a list Cornelia Huck
2017-01-17 8:56 ` [Qemu-devel] [PULL 07/12] s390x/pci: optimize calling s390_get_phb() Cornelia Huck
2017-01-17 8:56 ` [Qemu-devel] [PULL 08/12] s390x/pci: PCI multibus bridge handling Cornelia Huck
2017-01-17 8:56 ` [Qemu-devel] [PULL 09/12] s390x/pci: use hashtable to look up zpci via fh Cornelia Huck
2017-01-17 8:56 ` [Qemu-devel] [PULL 10/12] s390x/pci: handle PCIBridge bus number Cornelia Huck
2017-01-17 8:56 ` [Qemu-devel] [PULL 11/12] s390x/pci: merge msix init functions Cornelia Huck
2017-01-17 8:56 ` [Qemu-devel] [PULL 12/12] virtio-ccw: fix ring sizing Cornelia Huck
2017-01-19 18:32 ` [Qemu-devel] [PULL 00/12] s390x update Peter Maydell
2017-01-20 9:21 ` Cornelia Huck
2017-01-20 9:52 ` Thomas Huth
2017-01-20 9:58 ` Thomas Huth
2017-01-20 10:00 ` Cornelia Huck [this message]
2017-01-20 10:04 ` Thomas Huth
2017-01-20 10:11 ` Cornelia Huck
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=20170120110044.2127c9a9.cornelia.huck@de.ibm.com \
--to=cornelia.huck@de.ibm.com \
--cc=agraf@suse.de \
--cc=borntraeger@de.ibm.com \
--cc=jfrei@linux.vnet.ibm.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.com \
/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).