From patchwork Wed Nov 11 00:27:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Herrenschmidt X-Patchwork-Id: 542682 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 BD5A714142B for ; Wed, 11 Nov 2015 11:38:44 +1100 (AEDT) Received: from localhost ([::1]:36472 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwJQw-0000zC-IX for incoming@patchwork.ozlabs.org; Tue, 10 Nov 2015 19:38:42 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwJId-0001v5-S4 for qemu-devel@nongnu.org; Tue, 10 Nov 2015 19:30:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZwJId-0004LW-22 for qemu-devel@nongnu.org; Tue, 10 Nov 2015 19:30:07 -0500 Received: from gate.crashing.org ([63.228.1.57]:48646) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwJIc-0004L5-O8; Tue, 10 Nov 2015 19:30:07 -0500 Received: from pasglop.ozlabs.ibm.com. (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.13.8) with ESMTP id tAB0Sb2j024031; Tue, 10 Nov 2015 18:29:55 -0600 From: Benjamin Herrenschmidt To: qemu-ppc@nongnu.org Date: Wed, 11 Nov 2015 11:27:44 +1100 Message-Id: <1447201710-10229-32-git-send-email-benh@kernel.crashing.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1447201710-10229-1-git-send-email-benh@kernel.crashing.org> References: <1447201710-10229-1-git-send-email-benh@kernel.crashing.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 63.228.1.57 Cc: qemu-devel@nongnu.org Subject: [Qemu-devel] [PATCH 31/77] ppc/xics: Remove unused xics_set_irq_type() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Benjamin Herrenschmidt Reviewed-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 165ff0b..197df33 100644 --- a/hw/intc/xics.c +++ b/hw/intc/xics.c @@ -678,17 +678,6 @@ 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); -} - /* * XICS */ diff --git a/include/hw/ppc/xics.h b/include/hw/ppc/xics.h index ad39c8c..8e7998f 100644 --- a/include/hw/ppc/xics.h +++ b/include/hw/ppc/xics.h @@ -166,7 +166,6 @@ struct ICSIRQState { #define XICS_IRQS_SPAPR 1024 qemu_irq xics_get_qirq(XICSState *icp, int irq); -void xics_set_irq_type(XICSState *icp, int irq, bool lsi); int xics_spapr_alloc(XICSState *icp, int src, int irq_hint, bool lsi); int xics_spapr_alloc_block(XICSState *icp, int src, int num, bool lsi, bool align);