From patchwork Mon Jul 8 15:17:58 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: 13726716 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 19FF7C3DA42 for ; Mon, 8 Jul 2024 15:19:52 +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=JJj8Fnsjtx3hjcqriLGeQFYXgS ghUfIK1NZHcc7iSSzdhpDu/F5mN/bqVvYi9Yu3WkISnl0ewZp4+tmVJT9pOR0Kj+Syx4YxgueEprZ yzozwo7XbDKAtjoWiocYYIG56WBvSvGZ2KXFsFIUw4jkyd07wCb0wRMdxr9lNWB+Rrk1qWEdtEBAn 6xg3HLlMV407bip+Ha7dGNfySFAAXTQp22bhexkum6QdSJzwA+q2SJvsbUoetjCv7yJ8PCWCOdj05 k/qOBZHJGQfJtGzkYP8b3oxsLrHyimdY0jt2BtIu4iRE/SZnVQ+gBA052ixkLqRCWXCY2dcnl88kz cyGloczw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sQq9V-00000004BmS-3eNc; Mon, 08 Jul 2024 15:19:41 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sQq8I-00000004BM0-1nSu for linux-arm-kernel@lists.infradead.org; Mon, 08 Jul 2024 15:18:27 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id EE6CF60EA9; Mon, 8 Jul 2024 15:18:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88885C32786; Mon, 8 Jul 2024 15:18:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1720451905; bh=5L7sSMC918mgMvOyeeXnyUrTUC/3GAG1gYK8YxKyKLQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dGn3mqAuOg/uvGpyBQuDvp5WhSietEYcdsLBKJlZti0fHfyB/6L4AU7K9TXsGwFrd tzzhqyFeoa6/pzfgyKRQ8863VZI2m8LfrmOIfcCImDthQCa6+9snANbr93kgdaHwW8 PTJ1PBWZ5vtXazyBo+tCO3JWEOosZRgDggadBfqojRhiSDE0OeKTdOgS1yTeFsUNQG eTNWnvsCHvQJ+MphxFlvIDSem4z5OTgTR6A5stlwwV7JsCY3Tbn0VAL5gFwyqcKUdm LejDeIEpU4iHYx/Y0XNr4TVQo9VqP2siAyDLnK7vtdX8I+tuJX1yYNtOdFXoQPssec 38K5tjVbnyUfw== 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 v3 07/10] irqchip/armada-370-xp: Use correct type for cpu variable Date: Mon, 8 Jul 2024 17:17:58 +0200 Message-ID: <20240708151801.11592-8-kabel@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240708151801.11592-1-kabel@kernel.org> References: <20240708151801.11592-1-kabel@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240708_081826_531949_E36BDAD7 X-CRM114-Status: GOOD ( 12.39 ) 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);