Received: from eggs.gnu.org ([140.186.70.92]:44089) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIBzG-0008CM-Sl for qemu-devel@nongnu.org; Mon, 24 Oct 2011 00:18:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIBzF-0000bI-Bf for qemu-devel@nongnu.org; Mon, 24 Oct 2011 00:18:10 -0400 References: <1319426704-26850-1-git-send-email-david@gibson.dropbear.id.au> In-Reply-To: <1319426704-26850-1-git-send-email-david@gibson.dropbear.id.au> Mime-Version: 1.0 (iPhone Mail 8G4) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: From: Alexander Graf Date: Sun, 23 Oct 2011 21:17:50 -0700 Subject: Re: [Qemu-devel] [PATCH] ppc: Fix up usermode only builds List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson Cc: "qemu-ppc@nongnu.org" , "qemu-devel@nongnu.org" On 23.10.2011, at 20:25, David Gibson wrote: > The recent usage of MemoryRegion in kvm_ppc.h breaks builds with > CONFIG_USER_ONLY=3Dy. This patch fixes it. >=20 > Signed-off-by: David Gibson Ouch. Thanks a lot for the fix! Alex > --- > target-ppc/kvm_ppc.h | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) >=20 > diff --git a/target-ppc/kvm_ppc.h b/target-ppc/kvm_ppc.h > index b0d6fb6..f9c0198 100644 > --- a/target-ppc/kvm_ppc.h > +++ b/target-ppc/kvm_ppc.h > @@ -23,9 +23,11 @@ int kvmppc_get_hypercall(CPUState *env, uint8_t *buf, i= nt buf_len); > int kvmppc_set_interrupt(CPUState *env, int irq, int level); > void kvmppc_set_papr(CPUState *env); > int kvmppc_smt_threads(void); > +#ifndef CONFIG_USER_ONLY > off_t kvmppc_alloc_rma(const char *name, MemoryRegion *sysmem); > void *kvmppc_create_spapr_tce(uint32_t liobn, uint32_t window_size, int *p= fd); > int kvmppc_remove_spapr_tce(void *table, int pfd, uint32_t window_size); > +#endif /* !CONFIG_USER_ONLY */ > const ppc_def_t *kvmppc_host_cpu_def(void); >=20 > #else > @@ -69,6 +71,7 @@ static inline int kvmppc_smt_threads(void) > return 1; > } >=20 > +#ifndef CONFIG_USER_ONLY > static inline off_t kvmppc_alloc_rma(const char *name, MemoryRegion *sysme= m) > { > return 0; > @@ -85,6 +88,7 @@ static inline int kvmppc_remove_spapr_tce(void *table, i= nt pfd, > { > return -1; > } > +#endif /* !CONFIG_USER_ONLY */ >=20 > static inline const ppc_def_t *kvmppc_host_cpu_def(void) > { > --=20 > 1.7.6.3 >=20