From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:54935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwZ3u-0005DR-2C for qemu-devel@nongnu.org; Wed, 01 Aug 2012 09:34:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwZ3k-0003y8-GS for qemu-devel@nongnu.org; Wed, 01 Aug 2012 09:34:06 -0400 Received: from cantor2.suse.de ([195.135.220.15]:54747 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwZ3k-0003xf-AL for qemu-devel@nongnu.org; Wed, 01 Aug 2012 09:33:56 -0400 Message-ID: <5019303E.30508@suse.de> Date: Wed, 01 Aug 2012 15:33:50 +0200 From: =?ISO-8859-1?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] fix Xen compilation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefano Stabellini Cc: Anthony Liguori , xen-devel@lists.xensource.com, qemu-devel@nongnu.org, fantonifabio@tiscali.it, Ian Campbell Am 01.08.2012 12:19, schrieb Stefano Stabellini: > xen_pt_unregister_device is used as PCIUnregisterFunc, so it should > match the type. >=20 > Signed-off-by: Stefano Stabellini Tested-by: Andreas F=E4rber /-F >=20 > diff --git a/hw/xen_pt.c b/hw/xen_pt.c > index fdf68aa..307119a 100644 > --- a/hw/xen_pt.c > +++ b/hw/xen_pt.c > @@ -764,7 +764,7 @@ out: > return 0; > } > =20 > -static int xen_pt_unregister_device(PCIDevice *d) > +static void xen_pt_unregister_device(PCIDevice *d) > { > XenPCIPassthroughState *s =3D DO_UPCAST(XenPCIPassthroughState, de= v, d); > uint8_t machine_irq =3D s->machine_irq; > @@ -814,8 +814,6 @@ static int xen_pt_unregister_device(PCIDevice *d) > memory_listener_unregister(&s->memory_listener); > =20 > xen_host_pci_device_put(&s->real_device); > - > - return 0; > } > =20 > static Property xen_pci_passthrough_properties[] =3D { >=20 --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg