From patchwork Tue Jul 2 11:42: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: 13719485 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 AB1C5C3064D for ; Tue, 2 Jul 2024 11:44:44 +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=mB5/whs0HqnWnRs1iDoeWKTA1WDCTG4lpD72GkKngKM=; b=m2jT/1d3Yvl2XxyCooMPkr+l2t hjgdzMZPiffGOS1bQp0ZElYn2wQuiwbdH5akOUdqrg4Iw6lFRZb3GOSx/ve85dvjhbFMY1Q11wgJ/ FRhDwlyJNuSv4wva3TFi6KgXocNvizal5RX28KqGWai0eo40Rktc0xOTbuFYjC2FHZo6IGVaAJy++ HctOXsWHsX3kQD9vMtk1/wkt8GAJPMbE8NnlvHbE1218pHSXl43vH9aXAIU5pA/lAQHECn7pVyXA+ 9Uk8adHZnrnlgoXrdMvopZX8kP4tu0dOmjuiRA1FudBtSZ0lPypPbBKnojLzLej+ssO1i1HDz58Bq 6BWEV8Xw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sObw1-00000006Wld-1yfw; Tue, 02 Jul 2024 11:44:33 +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 1sObuy-00000006W6Y-3adk for linux-arm-kernel@lists.infradead.org; Tue, 02 Jul 2024 11:43:30 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 2B4C6CE1AF8; Tue, 2 Jul 2024 11:43:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 500A0C4AF0C; Tue, 2 Jul 2024 11:43:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1719920606; bh=5L7sSMC918mgMvOyeeXnyUrTUC/3GAG1gYK8YxKyKLQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IMkT/9uencYhIzJhmKlCl4wcdg4cNPP1VWRrnPX8H+GVvjdM9qgSU1j1TtLlsfHdX vVDsM34M2lNSth1TLFe99Yt/wSo4SsxByp37lOclCfVLB6YJXDNJdWJ8CTrhaj/hct TUJJlNpql2GhL1PoSx2PpTNgvZ4HTg0hPdAwlfNumBc4UYL3yxIOOlSbyO6AcXyJKv qqkUP2HCmjD3NAPtlp3/uKIuhSj4gcH+3JRwa8jolcbC9yGQ9sFyRvyXtWZVQzKsUD lfMEynQyTLmG+YZATRsNCRGJxqXMDHDyXsUAaiY+rrjohTPHSP4+n1naWCSrPX2aT4 dObz1eVrUk9Ug== 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 v2 07/30] irqchip/armada-370-xp: Use correct type for cpu variable Date: Tue, 2 Jul 2024 13:42:39 +0200 Message-ID: <20240702114302.22475-8-kabel@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240702114302.22475-1-kabel@kernel.org> References: <20240702114302.22475-1-kabel@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240702_044329_096090_9638168B X-CRM114-Status: GOOD ( 12.29 ) 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 Use unsigned int instead of int for variable storing the cpu number. Signed-off-by: Marek BehĂșn Reviewed-by: Andrew Lunn --- drivers/irqchip/irq-armada-370-xp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-armada-370-xp.c b/drivers/irqchip/irq-armada-370-xp.c index 8f52de6d8921..b9631cc25c0b 100644 --- a/drivers/irqchip/irq-armada-370-xp.c +++ b/drivers/irqchip/irq-armada-370-xp.c @@ -409,7 +409,7 @@ static void armada_370_xp_ipi_send_mask(struct irq_data *d, const struct cpumask *mask) { unsigned long map = 0; - int cpu; + unsigned int cpu; /* Convert our logical CPU mask into a physical one. */ for_each_cpu(cpu, mask) @@ -507,7 +507,7 @@ static int armada_xp_set_affinity(struct irq_data *d, const struct cpumask *mask_val, bool force) { irq_hw_number_t hwirq = irqd_to_hwirq(d); - int cpu; + unsigned int cpu; /* Select a single core from the affinity mask which is online */ cpu = cpumask_any_and(mask_val, cpu_online_mask);