Received: from eggs.gnu.org ([2001:4830:134:3::10]:34843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHP5P-0004Ed-5P for qemu-devel@nongnu.org; Mon, 27 Jun 2016 01:27:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHP5L-0008F7-1p for qemu-devel@nongnu.org; Mon, 27 Jun 2016 01:27:54 -0400 From: David Gibson Date: Mon, 27 Jun 2016 15:29:30 +1000 Message-Id: <1467005372-23288-3-git-send-email-david@gibson.dropbear.id.au> In-Reply-To: <1467005372-23288-1-git-send-email-david@gibson.dropbear.id.au> References: <1467005372-23288-1-git-send-email-david@gibson.dropbear.id.au> Subject: [Qemu-devel] [PULL 2/4] ppc/xics: Remove unused xics_set_irq_type() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: peter.maydell@linaro.org Cc: agraf@suse.de, imammedo@redhat.com, bharata@linux.vnet.ibm.com, pkrempa@redhat.com, qemu-devel@nongnu.org, qemu-ppc@nongnu.org, Benjamin Herrenschmidt , Nikunj A Dadhania , David Gibson From: Benjamin Herrenschmidt Signed-off-by: Benjamin Herrenschmidt Reviewed-by: David Gibson Signed-off-by: Nikunj A Dadhania [dwg: Adjusted for context to apply without original series] Signed-off-by: David Gibson --- hw/intc/xics.c | 11 ----------- include/hw/ppc/xics.h | 1 - 2 files changed, 12 deletions(-) diff --git a/hw/intc/xics.c b/hw/intc/xics.c index cce7f3d..2e83d41 100644 --- a/hw/intc/xics.c +++ b/hw/intc/xics.c @@ -694,17 +694,6 @@ static void ics_set_irq_type(ICSState *ics, int srcno, bool lsi) lsi ? XICS_FLAGS_IRQ_LSI : XICS_FLAGS_IRQ_MSI; } -void xics_set_irq_type(XICSState *icp, int irq, bool lsi) -{ - int src = xics_find_source(icp, irq); - ICSState *ics; - - assert(src >= 0); - - ics = &icp->ics[src]; - ics_set_irq_type(ics, irq - ics->offset, lsi); -} - #define ICS_IRQ_FREE(ics, srcno) \ (!((ics)->irqs[(srcno)].flags & (XICS_FLAGS_IRQ_MASK))) diff --git a/include/hw/ppc/xics.h b/include/hw/ppc/xics.h index 9091054..6925677 100644 --- a/include/hw/ppc/xics.h +++ b/include/hw/ppc/xics.h @@ -160,7 +160,6 @@ struct ICSIRQState { #define XICS_IRQS 1024 qemu_irq xics_get_qirq(XICSState *icp, int irq); -void xics_set_irq_type(XICSState *icp, int irq, bool lsi); int xics_alloc(XICSState *icp, int src, int irq_hint, bool lsi, Error **errp); int xics_alloc_block(XICSState *icp, int src, int num, bool lsi, bool align, Error **errp); -- 2.5.5