Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3480824pxu; Sun, 11 Oct 2020 11:13:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYwgwo+/r3s7+wgVk4Aqcu4sl4IWaUJVHgqJuqMEukpj33AK/VS9ol0q7JNk4V6QQzKEAE X-Received: by 2002:a17:906:3541:: with SMTP id s1mr9043651eja.413.1602439986674; Sun, 11 Oct 2020 11:13:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602439986; cv=none; d=google.com; s=arc-20160816; b=QbzMiWmg7WNpKnIBEMWyxMO8zSJitH2liyNfDZM2SwQvubVhFazqysscxhBhySHZnm 4oZIhx6BWDe5dNYup7Rkdv2ABY6aUPcnyDo+bOd9YVKA3W+54ijEK+OEdT3PfcQE8faJ oxPysuGVyPvC0p2jORm+MqRhIzB76ZC4AP5vfeOznxeG7vaORseuypw9/qJ/WePlZTSf J+XtDCKxvWytzqIRymksh2tbzY67HKWxd7OMpTGRr64EaFC22ro9G58HC2g29p6gZkYv FP32OToYI683OKdq0dLOF/bJmm7T4eCfuL6w8ofw6SDreADUBCx66aSXZumoyaYEnFf7 qXUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=3cPxcCGgSdi0yXrlbno8ZztE0a8BhHGAVtmiJGOdsnY=; b=uSkdwU6oiACPlAaEeh2TLKP0uy7VH51bbCXV1K17fz1rylOFzbKo3dK/DNvl8C4D9c /0/ZmRmQOFRjrDKVphz2xJysmrlnLYBtjSpP1StCZRjGHvjWIvi4Ic39SZ0uP5GGAE7M t3FHoMGTFr+DXbIOusEUVdWO/RDQGNuCiZhcrwxuwnZkoy7t6Y6VWtjg87n9M1PhJW4T TL8SU74MsxTx6sWL8QaoyPBTZczvVVvC+/2Fo4NsA0gG5zeM8btoMyRZVm/StN/Zcnoo Fpsca7mhe47tCauFL86K5RQVHiXhvvh9KlS2qVajKP86RWrhxwajdgI5JTVLS7ReU6pE ekpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=E1ubES5w; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=Reeb+K7z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c66si10819318edf.60.2020.10.11.11.12.43; Sun, 11 Oct 2020 11:13:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=E1ubES5w; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=Reeb+K7z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388641AbgJKR6X (ORCPT + 99 others); Sun, 11 Oct 2020 13:58:23 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:40246 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388517AbgJKR5s (ORCPT ); Sun, 11 Oct 2020 13:57:48 -0400 Date: Sun, 11 Oct 2020 17:57:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1602439066; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3cPxcCGgSdi0yXrlbno8ZztE0a8BhHGAVtmiJGOdsnY=; b=E1ubES5watpi8zuKQvHEVz9GEc6bOLZIQO/ID97628jesg3E7jO1v5o7cnfRa2cYtJeH4D N7DvMeI02jHarCXgADjALfNaW9xArMz9x/RrF7NAIalYw2en5KKyWO1VbGEC0VKgZ/h2qV y6CWppliUtrLTmHmt0LcOPYSLJLA490OnaoxMRZddIbOpuepYwB8WUM1eWD7g7WB5yIVCA DLKyKDnxYssbizaXP8fbe1PWnMJQkBjJMhZ0rpQC6t4sFYq3yeVjLscaDIHnLVJk18qZ70 vhKzfGLPQvJQWn92Q87owvEep+mViwz/Cs2tT9uoqb9QPkM1JJni7su74Ryytw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1602439066; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3cPxcCGgSdi0yXrlbno8ZztE0a8BhHGAVtmiJGOdsnY=; b=Reeb+K7zVjdJrsV+WlmI++ByJR8qHeWQe+ccFiIjL493qWA/KrOqlrNp9u0jfYod1+l+fq gCyeBehYFTgzp6AQ== From: "tip-bot2 for YueHaibing" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/core] irqchip/ti-sci-inta: Fix unsigned comparison to zero Cc: YueHaibing , Marc Zyngier , Lokesh Vutla , x86 , LKML In-Reply-To: <20200826035430.21060-1-yuehaibing@huawei.com> References: <20200826035430.21060-1-yuehaibing@huawei.com> MIME-Version: 1.0 Message-ID: <160243906578.7002.9555002535149424880.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/core branch of tip: Commit-ID: 4c9b1bfaa5039fee650f4de514a8e70ae976fc2f Gitweb: https://git.kernel.org/tip/4c9b1bfaa5039fee650f4de514a8e70ae976fc2f Author: YueHaibing AuthorDate: Wed, 26 Aug 2020 11:54:30 +08:00 Committer: Marc Zyngier CommitterDate: Sun, 13 Sep 2020 15:30:00 +01:00 irqchip/ti-sci-inta: Fix unsigned comparison to zero ti_sci_inta_xlate_irq() return -ENOENT on fail, p_hwirq should be int type. Fixes: 5c4b585d2910 ("irqchip/ti-sci-inta: Add support for INTA directly connecting to GIC") Signed-off-by: YueHaibing Signed-off-by: Marc Zyngier Acked-by: Lokesh Vutla Link: https://lore.kernel.org/r/20200826035430.21060-1-yuehaibing@huawei.com --- drivers/irqchip/irq-ti-sci-inta.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-ti-sci-inta.c b/drivers/irqchip/irq-ti-sci-inta.c index d4e9760..05bf94b 100644 --- a/drivers/irqchip/irq-ti-sci-inta.c +++ b/drivers/irqchip/irq-ti-sci-inta.c @@ -175,8 +175,8 @@ static struct ti_sci_inta_vint_desc *ti_sci_inta_alloc_parent_irq(struct irq_dom struct irq_fwspec parent_fwspec; struct device_node *parent_node; unsigned int parent_virq; - u16 vint_id, p_hwirq; - int ret; + int p_hwirq, ret; + u16 vint_id; vint_id = ti_sci_get_free_resource(inta->vint); if (vint_id == TI_SCI_RESOURCE_NULL)