From patchwork Thu Jul 11 11:57:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marek_Beh=C3=BAn?= X-Patchwork-Id: 13730629 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6FB2BC3DA41 for ; Thu, 11 Jul 2024 11:58:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=oEpD9IU+39RZRznSBk9U3bnJ+DIHudv0Ymxmqynx158=; b=4J/SjzBgI9IZ2QOqquM/NhGoUw jnUaNmMFaXdl8ZJ9DWXVKHYHfoo7EMUD80fZ47MpAdDMP90DRiAvSphiBsK/xW0QfAkUccf8EJukz mQhcVwj/hHMbZGSjEjuUwfc/Wx/9XimDDaB/x1RwmO7CBiXzBH9MpsXD2K/Eh44/mb2ddLgj+0Pk1 dMKIiuqDwnhqNR3QB/Pt2DMXgUEqNeNZK8ebjB96kfN9Hca8agXc1a37BDWwBQo4jL+E3KPQMemi2 CnpozuRRsbG2XeuuRifvHdbei3+tbdc07tynox5iXyBUeafwQp+J28fUvuWtQmLKh8FN1/Tfa0GzT A41vQ3WA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRsRT-0000000Ds4Q-0C1v; Thu, 11 Jul 2024 11:58:31 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRsQx-0000000Drtg-1VLE for linux-arm-kernel@lists.infradead.org; Thu, 11 Jul 2024 11:58:01 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id B9890CE18BA; Thu, 11 Jul 2024 11:57:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFEA8C4AF13; Thu, 11 Jul 2024 11:57:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1720699076; bh=qXMMpJe7Tt46catG2ods+Qy+liP4yFnsD4G4zPi31aI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qgTn5mTIXsU4BBD/GPkGFWhFkiUAYDiR3sz3dm1jTeavBhXesKLA5IgTh+O0JURwP eSt09E8myz2EibCZfEe2G99HgQP9igiQr+HE0qRY/+vmqZWy9QUUbb41q9ew2QLu3a CxKe6H6ekB4KpNTURE+T5AbX1rowpqKxiUhMDjdzY1Mej0UDxLvNOTsi+1AHkCvNXC X7lLs71n3gw2J7EBC8txu6eIh8REPrRIDMYXo2EBT+rtbRIFhsM9EPiD4trmcyTSt1 0Rc22jhsgdOeGObfGsdjcQrhGw3KynVL20sjfLobPFquaNb2g7MqweI7qa1NR5C6eI vrcE8Pvbr4j7g== From: =?utf-8?q?Marek_Beh=C3=BAn?= To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, arm@kernel.org, Andy Shevchenko , Hans de Goede , =?utf-8?q?Ilpo_J=C3=A4rvinen?= Cc: =?utf-8?q?Marek_Beh=C3=BAn?= Subject: [PATCH 01/10] irqchip/armada-370-xp: Rename variable for consistency Date: Thu, 11 Jul 2024 13:57:39 +0200 Message-ID: <20240711115748.30268-2-kabel@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240711115748.30268-1-kabel@kernel.org> References: <20240711115748.30268-1-kabel@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240711_045759_658227_9FB9BFAE X-CRM114-Status: GOOD ( 13.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Rename the irq variable to virq in the ipi_resume() function for consistency with the rest of the code. Signed-off-by: Marek BehĂșn Reviewed-by: Andrew Lunn --- drivers/irqchip/irq-armada-370-xp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/irqchip/irq-armada-370-xp.c b/drivers/irqchip/irq-armada-370-xp.c index 22e1a493abae..7016b206bddd 100644 --- a/drivers/irqchip/irq-armada-370-xp.c +++ b/drivers/irqchip/irq-armada-370-xp.c @@ -462,14 +462,14 @@ static const struct irq_domain_ops ipi_domain_ops = { static void ipi_resume(void) { for (int i = 0; i < IPI_DOORBELL_END; i++) { - int irq; + int virq; - irq = irq_find_mapping(ipi_domain, i); - if (irq <= 0) + virq = irq_find_mapping(ipi_domain, i); + if (virq <= 0) continue; - if (irq_percpu_is_enabled(irq)) { + if (irq_percpu_is_enabled(virq)) { struct irq_data *d; - d = irq_domain_get_irq_data(ipi_domain, irq); + d = irq_domain_get_irq_data(ipi_domain, virq); armada_370_xp_ipi_unmask(d); } }