From: David Gibson <david@gibson.dropbear.id.au>
To: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Cc: qemu-devel@nongnu.org, famz@redhat.com, qemu-ppc@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 00/11] macio: remove legacy macio_init() function
Date: Wed, 28 Feb 2018 13:24:01 +1100 [thread overview]
Message-ID: <20180228022401.GF11706@umbus.fritz.box> (raw)
In-Reply-To: <b2c5ed9a-4946-83a2-3788-2762cc73dc80@ilande.co.uk>
[-- Attachment #1: Type: text/plain, Size: 3884 bytes --]
On Fri, Feb 23, 2018 at 02:51:48PM +0000, Mark Cave-Ayland wrote:
> On 23/02/18 12:11, no-reply@patchew.org wrote:
>
> > Hi,
> >
> > This series failed build test on s390x host. Please find the details below.
> >
> > Type: series
> > Message-id: 20180219181922.21586-1-mark.cave-ayland@ilande.co.uk
> > Subject: [Qemu-devel] [PATCH 00/11] macio: remove legacy
> > macio_init() function
[snip]
> > CC ppc-linux-user/accel/stubs/whpx-stub.o
> > CC ppc-linux-user/accel/stubs/kvm-stub.o
> > CC ppc-linux-user/accel/tcg/tcg-runtime.o
> > CC ppc-linux-user/accel/tcg/tcg-runtime-gvec.o
> > CC ppc-linux-user/accel/tcg/cpu-exec.o
> > CC ppc-linux-user/accel/tcg/cpu-exec-common.o
> > CC ppc-linux-user/accel/tcg/translate-all.o
> > CC ppc-linux-user/accel/tcg/translator.o
> > CC ppc-linux-user/accel/tcg/user-exec.o
> > CC ppc-linux-user/accel/tcg/user-exec-stub.o
> > CC ppc-linux-user/linux-user/main.o
> > CC ppc-linux-user/linux-user/syscall.o
> > CC ppc-linux-user/linux-user/strace.o
> > CC ppc-linux-user/linux-user/mmap.o
> > CC ppc-linux-user/linux-user/signal.o
> > CC ppc-linux-user/linux-user/elfload.o
> > CC ppc-linux-user/linux-user/linuxload.o
> > CC ppc-linux-user/linux-user/uaccess.o
> > CC ppc-linux-user/linux-user/uname.o
> > CCAS ppc-linux-user/linux-user/safe-syscall.o
> > CC ppc-linux-user/target/ppc/cpu-models.o
> > CC ppc-linux-user/target/ppc/cpu.o
> > CC ppc-linux-user/target/ppc/translate.o
> > CC ppc-linux-user/target/ppc/kvm-stub.o
> > CC ppc-linux-user/target/ppc/dfp_helper.o
> > In file included from /var/tmp/patchew-tester-tmp-ob5ouqpf/src/include/hw/qdev.h:4:0,
> > from /var/tmp/patchew-tester-tmp-ob5ouqpf/src/include/hw/sysbus.h:6,
> > from /var/tmp/patchew-tester-tmp-ob5ouqpf/src/include/hw/ppc/openpic.h:5,
> > from /var/tmp/patchew-tester-tmp-ob5ouqpf/src/target/ppc/kvm-stub.c:15:
> > /var/tmp/patchew-tester-tmp-ob5ouqpf/src/include/hw/hw.h:6:2: error: #error Cannot include hw/hw.h from user emulation
> > #error Cannot include hw/hw.h from user emulation
> > ^~~~~
> > In file included from /var/tmp/patchew-tester-tmp-ob5ouqpf/src/target/ppc/kvm-stub.c:15:0:
> > /var/tmp/patchew-tester-tmp-ob5ouqpf/src/include/hw/ppc/openpic.h:146:18: error: field ‘mem’ has incomplete type
> > MemoryRegion mem;
> > ^~~
> > /var/tmp/patchew-tester-tmp-ob5ouqpf/src/include/hw/ppc/openpic.h:163:18: error: array type has incomplete element type ‘MemoryRegion {aka struct MemoryRegion}’
> > MemoryRegion sub_io_mem[6];
> > ^~~~~~~~~~
> > make[1]: *** [/var/tmp/patchew-tester-tmp-ob5ouqpf/src/rules.mak:66: target/ppc/kvm-stub.o] Error 1
> > make[1]: *** Waiting for unfinished jobs....
> > make: *** [Makefile:404: subdir-ppc64-linux-user] Error 2
> > make: *** [Makefile:404: subdir-ppc-linux-user] Error 2
> > === OUTPUT END ===
> >
> > Test command exited with code: 2
>
> Oh that's fun - it seems that kvm-stub.c includes hw/ppc/openpic.h in order
> to make use of kvm_openpic_connect_vcpu() which is why this is tripping up.
>
> David, any idea what the right solution is here?
Not off the top of my head.
> I could perhaps split the
> KVM-specific parts of openpic.h into a separate hw/ppc/openpic_kvm.h file.
> Then again it feels a bit like kvm_openpic_connect_vcpu() doesn't live in
> the right place.
Both of those seem like plausible solutions.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2018-02-28 2:41 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-19 18:19 [Qemu-devel] [PATCH 00/11] macio: remove legacy macio_init() function Mark Cave-Ayland
2018-02-19 18:19 ` [Qemu-devel] [PATCH 01/11] macio: embed DBDMA device directly within macio Mark Cave-Ayland
2018-02-20 3:28 ` David Gibson
2018-02-19 18:19 ` [Qemu-devel] [PATCH 02/11] macio: move ESCC device within the macio device Mark Cave-Ayland
2018-02-20 3:28 ` David Gibson
2018-02-19 18:19 ` [Qemu-devel] [PATCH 03/11] heathrow: QOMify heathrow PIC Mark Cave-Ayland
2018-02-20 3:28 ` David Gibson
2018-02-20 4:18 ` Mark Cave-Ayland
2018-02-20 4:39 ` David Gibson
2018-02-19 18:19 ` [Qemu-devel] [PATCH 04/11] heathrow: convert to trace-events Mark Cave-Ayland
2018-02-20 4:20 ` David Gibson
2018-02-20 4:40 ` Mark Cave-Ayland
2018-02-19 18:19 ` [Qemu-devel] [PATCH 05/11] heathrow: change heathrow_pic_init() to return the heathrow device Mark Cave-Ayland
2018-02-20 4:22 ` David Gibson
2018-02-19 18:19 ` [Qemu-devel] [PATCH 06/11] macio: move macio related structures and defines into separate macio.h file Mark Cave-Ayland
2018-02-20 4:40 ` David Gibson
2018-02-27 23:46 ` Philippe Mathieu-Daudé
2018-02-19 18:19 ` [Qemu-devel] [PATCH 07/11] mac_oldworld: use object link to pass heathrow PIC object to macio Mark Cave-Ayland
2018-02-20 4:42 ` David Gibson
2018-02-19 18:19 ` [Qemu-devel] [PATCH 08/11] openpic: move OpenPIC state and related definitions to openpic.h Mark Cave-Ayland
2018-02-22 2:12 ` David Gibson
2018-02-19 18:19 ` [Qemu-devel] [PATCH 09/11] mac_newworld: use object link to pass OpenPIC object to macio Mark Cave-Ayland
2018-02-22 2:19 ` David Gibson
2018-02-19 18:19 ` [Qemu-devel] [PATCH 10/11] macio: move setting of CUDA timebase frequency to macio_common_realize() Mark Cave-Ayland
2018-02-22 2:24 ` David Gibson
2018-02-19 18:19 ` [Qemu-devel] [PATCH 11/11] macio: remove macio_init() function Mark Cave-Ayland
2018-02-22 14:12 ` [Qemu-devel] [PATCH 00/11] macio: remove legacy " no-reply
2018-02-23 12:11 ` no-reply
2018-02-23 14:51 ` Mark Cave-Ayland
2018-02-28 2:24 ` David Gibson [this message]
2018-02-24 17:18 ` no-reply
2018-02-25 15:24 ` no-reply
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=20180228022401.GF11706@umbus.fritz.box \
--to=david@gibson.dropbear.id.au \
--cc=famz@redhat.com \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@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).