Received: from eggs.gnu.org ([2001:4830:134:3::10]:34153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bx7Ge-0004x1-FO for qemu-devel@nongnu.org; Thu, 20 Oct 2016 02:55:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bx7Gb-0000l7-Ef for qemu-devel@nongnu.org; Thu, 20 Oct 2016 02:55:56 -0400 References: <1476940330-27705-1-git-send-email-david@gibson.dropbear.id.au> <1476940330-27705-2-git-send-email-david@gibson.dropbear.id.au> From: Thomas Huth Message-ID: <434e94b0-2315-ad1d-cc22-93bdf31b8e5e@redhat.com> Date: Thu, 20 Oct 2016 08:55:45 +0200 MIME-Version: 1.0 In-Reply-To: <1476940330-27705-2-git-send-email-david@gibson.dropbear.id.au> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 01/13] pseries: Remove unused callbacks from sPAPR VIO bus state List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson , aik@ozlabs.ru, mdroth@linux.vnet.ibm.com, groug@kaod.org Cc: agraf@suse.de, lvivier@redhat.com, qemu-ppc@nongnu.org, qemu-devel@nongnu.org On 20.10.2016 07:11, David Gibson wrote: > The original QOMification of the spapr VIO devices in 3954d33 "spapr: > convert to QEMU Object Model (v2)" moved some callbacks from the > VIOsPAPRBus structure to the VIOsPAPRDeviceClass. Except, that it > forgot to actually remove them from the VIOsPAPRBus structure (which > still exists, though it doesn't fulfill quite the same function as it > did pre-QOM). > > This patch removes those now unused callback fields. > > Signed-off-by: David Gibson > Reviewed-by: Alexey Kardashevskiy > --- > include/hw/ppc/spapr_vio.h | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/include/hw/ppc/spapr_vio.h b/include/hw/ppc/spapr_vio.h > index 40d0e5f..0b025fd 100644 > --- a/include/hw/ppc/spapr_vio.h > +++ b/include/hw/ppc/spapr_vio.h > @@ -76,8 +76,6 @@ struct VIOsPAPRDevice { > struct VIOsPAPRBus { > BusState bus; > uint32_t next_reg; > - int (*init)(VIOsPAPRDevice *dev); > - int (*devnode)(VIOsPAPRDevice *dev, void *fdt, int node_off); > }; > > extern VIOsPAPRBus *spapr_vio_bus_init(void); > Reviewed-by: Thomas Huth