From patchwork Tue Apr 8 14:43:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 27987 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f199.google.com (mail-vc0-f199.google.com [209.85.220.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DC85020A9F for ; Tue, 8 Apr 2014 14:45:50 +0000 (UTC) Received: by mail-vc0-f199.google.com with SMTP id lh14sf2859783vcb.10 for ; Tue, 08 Apr 2014 07:45:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe:list-post :list-help:list-subscribe:mime-version:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :list-archive:content-type:content-transfer-encoding; bh=prkpfz+WrT+GOvg5UbCcLY/hkgrrmh9bN/mZt8oCv5w=; b=WMNfXi08kiPWx4FzfqtbEawENh6oWDww9uwHMmug2SA0epr188TX6wjTRiuLTD30dI AgYR3cwK8lhG07Vsm5JcVvStFxiViw0SOkObPde3QnBTXnDUhPjZc0AUK5lSXCVCxaYZ ybUGt7erf+pJ3afV/i263lxMdDApYy1nCeoWBsPMqsvQ9/I360dQI3y1ECrSe7MwSVgd 3j23ChDIC/VaVWDIANeEVi4d4YxhAdpvSrooQX3RQnOjJ2A5JtuSPbfwu7MWrklCz2EH MWrmeOwK6RsX8eHs+ymFdrqZnoURUmSWSvbMiPTIrDg1eiLAUkglXlNbx+h5TU7zprws KeKw== X-Gm-Message-State: ALoCoQkzSF+WGGfBF7Me0G27oI9J82gZU6q1/pYWWYtLwRlKKJJ39+vzwy7kTkaawvtjud4Kpdcx X-Received: by 10.58.77.204 with SMTP id u12mr1863741vew.24.1396968350600; Tue, 08 Apr 2014 07:45:50 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.25.147 with SMTP id 19ls220665qgt.15.gmail; Tue, 08 Apr 2014 07:45:50 -0700 (PDT) X-Received: by 10.58.13.104 with SMTP id g8mr3510470vec.16.1396968350440; Tue, 08 Apr 2014 07:45:50 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id tm8si428220vdc.152.2014.04.08.07.45.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Apr 2014 07:45:50 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id ij19so827694vcb.24 for ; Tue, 08 Apr 2014 07:45:50 -0700 (PDT) X-Received: by 10.52.65.132 with SMTP id x4mr505231vds.36.1396968350293; Tue, 08 Apr 2014 07:45:50 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.12.8 with SMTP id v8csp251649vcv; Tue, 8 Apr 2014 07:45:50 -0700 (PDT) X-Received: by 10.58.1.5 with SMTP id 5mr3688275vei.8.1396968349891; Tue, 08 Apr 2014 07:45:49 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id gs7si436594vdc.20.2014.04.08.07.45.49 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 08 Apr 2014 07:45:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WXXG9-0000AN-3L; Tue, 08 Apr 2014 14:44:21 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WXXG8-00009f-6h for xen-devel@lists.xenproject.org; Tue, 08 Apr 2014 14:44:20 +0000 Received: from [85.158.137.68:49118] by server-6.bemta-3.messagelabs.com id 50/C6-00470-34B04435; Tue, 08 Apr 2014 14:44:19 +0000 X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-10.tower-31.messagelabs.com!1396968258!5764487!1 X-Originating-IP: [74.125.83.41] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.11.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 11350 invoked from network); 8 Apr 2014 14:44:18 -0000 Received: from mail-ee0-f41.google.com (HELO mail-ee0-f41.google.com) (74.125.83.41) by server-10.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 8 Apr 2014 14:44:18 -0000 Received: by mail-ee0-f41.google.com with SMTP id t10so786722eei.0 for ; Tue, 08 Apr 2014 07:44:18 -0700 (PDT) X-Received: by 10.14.99.68 with SMTP id w44mr2832262eef.82.1396968257969; Tue, 08 Apr 2014 07:44:17 -0700 (PDT) Received: from belegaer.uk.xensource.com ([185.25.64.249]) by mx.google.com with ESMTPSA id m42sm5031709eex.21.2014.04.08.07.44.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Apr 2014 07:44:17 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 8 Apr 2014 15:43:54 +0100 Message-Id: <1396968247-8768-6-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1396968247-8768-1-git-send-email-julien.grall@linaro.org> References: <1396968247-8768-1-git-send-email-julien.grall@linaro.org> Cc: stefano.stabellini@citrix.com, Julien Grall , tim@xen.org, ian.campbell@citrix.com Subject: [Xen-devel] [PATCH v3 05/18] xen/arm: IRQ: drop irq parameter in __setup_irq X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: The IRQ number is already provided by desc and __setup_irq doesn't use it in any case. Signed-off-by: Julien Grall Acked-by: Ian Campbell --- Changes in v2: - Patch added --- xen/arch/arm/gic.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/xen/arch/arm/gic.c b/xen/arch/arm/gic.c index bc928ec..9cc5fd6 100644 --- a/xen/arch/arm/gic.c +++ b/xen/arch/arm/gic.c @@ -598,8 +598,7 @@ void __init release_irq(unsigned int irq) xfree(action); } -static int __setup_irq(struct irq_desc *desc, unsigned int irq, - struct irqaction *new) +static int __setup_irq(struct irq_desc *desc, struct irqaction *new) { if ( desc->action != NULL ) return -EBUSY; @@ -619,7 +618,7 @@ int __init setup_dt_irq(const struct dt_irq *irq, struct irqaction *new) desc = irq_to_desc(irq->irq); spin_lock_irqsave(&desc->lock, flags); - rc = __setup_irq(desc, irq->irq, new); + rc = __setup_irq(desc, new); spin_unlock_irqrestore(&desc->lock, flags); if ( !rc ) @@ -903,7 +902,7 @@ int gic_route_irq_to_guest(struct domain *d, const struct dt_irq *irq, gic_set_irq_properties(irq->irq, level, cpumask_of(smp_processor_id()), GIC_PRI_IRQ); - retval = __setup_irq(desc, irq->irq, action); + retval = __setup_irq(desc, action); if (retval) { xfree(action); goto out;