From patchwork Thu Jul 11 16:09:05 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: 13730845 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 3119CC3DA45 for ; Thu, 11 Jul 2024 16:11:50 +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=dwunz+2YYHpIwhTpOY8Cb9QXleywbmzBBJ9cSgyW0CI=; b=iinEpD0TMRa92Kw6o2IKVLkiro YAIjkERPBdvmz8g1ASHq7pXEh1IMAictVQpdW0aPtpREFV6xSahn2NFXWejEzEepyjwuI0sh5Cw6y l8DEOvAFX3opLL6Gv0hsKyiSSV6j/ZoamSTDzhlgILj8AnaKYvwBC77CJKFKQSiHn9Hkkw/xypTo+ dELRU8YrHKCWMUFqbjm2YBwXF+v0Fp3x/IK0cjQ3ThLrOpoRilyYSCZBq1wedgP57SQxtvTQlcLVr fGgD72HvzeuXpj+IpIKOSHwrSXw00D9Hqo1XW62RyrlJdg67JGkP4bF9Ixa+sH6PqbRlm2754nAN7 1ABsyNvg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRwOP-0000000EdaX-3qdt; Thu, 11 Jul 2024 16:11:37 +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 1sRwMR-0000000Ecle-3UtS for linux-arm-kernel@lists.infradead.org; Thu, 11 Jul 2024 16:09:37 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 3769ACE0E77; Thu, 11 Jul 2024 16:09:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A860C32786; Thu, 11 Jul 2024 16:09:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1720714173; bh=acyKlHBZhYxlowH8omCW+TK7I7gwGCSaajYh38zuPlk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MpYv0P81fxUYqQmTe4Iq7yaMT0HC9YtY6NKdH7LWw739b7VxydLe+Q+ZpdvE0WaJy LlblZi+oSMeYxtOMU1Pu+iUhMCsADdD81qPhM8p5kry9DeuNnRUF+r+s5SUj9cdEga +qlI69Nvi/sxbNKtfwsEWYaAUDr8Z/0MKoNJ/drJUW3nvf+NTf+owP9Ikwt4/KAbDG xra0Uy0DH3XE6HcFARV1jF4w8aioDqY8XCGGjYJ7HpJOPzmxy1gYeosW6cB9kJPahP 8Cca854+axy00fTJORSNviHOvq1DQaTmPIXStYgwSaj5BwuHJPdxhwyridkIcb1b23 at6u7fHelcR4g== 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 08/10] irqchip/armada-370-xp: Use u32 type instead of unsigned long where possieble Date: Thu, 11 Jul 2024 18:09:05 +0200 Message-ID: <20240711160907.31012-9-kabel@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240711160907.31012-1-kabel@kernel.org> References: <20240711160907.31012-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_090936_073128_1162D415 X-CRM114-Status: GOOD ( 12.28 ) 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 For consistency across the driver, use the u32 type instead of unsigned long for holding register values and return value of cpu_logical_map(). One exception is when the variable is referenced for passing into for_each_set_bit(), in which case it has to be unsigned long. Signed-off-by: Marek BehĂșn --- drivers/irqchip/irq-armada-370-xp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-armada-370-xp.c b/drivers/irqchip/irq-armada-370-xp.c index 2021b7e47a93..2c8272fe7150 100644 --- a/drivers/irqchip/irq-armada-370-xp.c +++ b/drivers/irqchip/irq-armada-370-xp.c @@ -365,7 +365,7 @@ static inline int mpic_msi_init(struct device_node *node, static void mpic_perf_init(void) { - unsigned long cpuid; + u32 cpuid; /* * This Performance Counter Overflow interrupt is specific for @@ -404,8 +404,8 @@ static void mpic_ipi_unmask(struct irq_data *d) static void mpic_ipi_send_mask(struct irq_data *d, const struct cpumask *mask) { - unsigned long map = 0; unsigned int cpu; + u32 map = 0; /* Convert our logical CPU mask into a physical one. */ for_each_cpu(cpu, mask) @@ -648,7 +648,8 @@ static inline void mpic_handle_ipi_irq(void) {} static void mpic_handle_cascade_irq(struct irq_desc *desc) { struct irq_chip *chip = irq_desc_get_chip(desc); - unsigned long cause, irqsrc, cpuid; + unsigned long cause; + u32 irqsrc, cpuid; irq_hw_number_t i; chained_irq_enter(chip, desc);