From patchwork Mon Jun 27 05:29:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Gibson X-Patchwork-Id: 640791 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rdHYP0J2Kz9syB for ; Mon, 27 Jun 2016 15:29:13 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.b=NdVBhFt9; dkim-atps=neutral Received: from localhost ([::1]:56533 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHP6c-0005Av-VS for incoming@patchwork.ozlabs.org; Mon, 27 Jun 2016 01:29:11 -0400 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 Received: from ozlabs.org ([103.22.144.67]:40775) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHP5K-0008EQ-Eo; Mon, 27 Jun 2016 01:27:50 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 3rdHWk1ynLz9syB; Mon, 27 Jun 2016 15:27:46 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1467005266; bh=cfORGbuWlLiiMDAo1ZynaD9lqR4+beN+I8i3+p6O0LA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NdVBhFt9AWylF/Xc5IjhBXgRCs1Zwmfm6WDFXotdHpbIPYf9jQ4QlTZ8vXTaSKm2O YTbrCLt4+g5IOiEwj+8ziLU5Gg/od2YsW5Amtlb/cNcsiDngHQB8vQLAYRZY9vRGgj jPE15o4/o4pk/Q0suOSJWdGF3psSlYy+4s2Z09vk= From: David Gibson To: peter.maydell@linaro.org Date: Mon, 27 Jun 2016 15:29:30 +1000 Message-Id: <1467005372-23288-3-git-send-email-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.5.5 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> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 103.22.144.67 Subject: [Qemu-devel] [PULL 2/4] ppc/xics: Remove unused xics_set_irq_type() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: pkrempa@redhat.com, Nikunj A Dadhania , qemu-devel@nongnu.org, agraf@suse.de, qemu-ppc@nongnu.org, bharata@linux.vnet.ibm.com, imammedo@redhat.com, David Gibson Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" 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);