From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DD1E21D5BB; Fri, 20 Dec 2024 17:13:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734714826; cv=none; b=mpR8D3JgAvUXESq6xowMorr94wKkheyOdLb1ODE29RPdC3rX1Ge1m0wilKcSV7RPIq+vTMVzH/EtMKShPVl+5vHdBui+UJkXgoUgYBnq50Vt3suOn7HE2wZYLvd+RRlMRaAEIYGiQwLKWfZMCsCq2TLsNfn6xAdmRteVy60qgR4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734714826; c=relaxed/simple; bh=Tzf+R0cdsnN4Bz7ctgPLHqNIV/iSYtVlg8oATWjDSbo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=H8uAMcpIYQV41xjVzP350djad16Ani4VKR47rfvKOkNd7qqA5F0EbJrKgI3uOsEX0N+cd8/aoepmCBdVu2Du2aS+UJK1yjThDN6pO8LqwUq1yMsrjx8qQy3034o1ocbWB8n7vpPgFy3XZaWlf9WEV9SoGPQMkXzkqYvVUTp9O1k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=vHljs5pk; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="vHljs5pk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DEA97C4CECD; Fri, 20 Dec 2024 17:13:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1734714825; bh=Tzf+R0cdsnN4Bz7ctgPLHqNIV/iSYtVlg8oATWjDSbo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vHljs5pkursofUssE2fgZNFZu9sXfOBQV3sHug32BZ7T/pYvJgY8ES1UWIkEyXW58 w89QHCha6omSMd2uQ9qE4TVD85wmlJXObnIC7E5Pom3iJqxwNMizpo1Ql4OFRIMmIx zc/XXLGRS02VfSHP3mjUbT0ukpIkLpitT2WgldXEQLQZ++aan85pxzMAj7NViEg1+z n21MGjFzI9DOPch+1k9go6o9f6U6nzfPMhZh/ytlPf46xWJ6TCwXsJhThlYIp/peWd AWS9j36Xt5kQBXfacb/Ya5Ij9mfUjzGg5SCmfrookn8gLVTnXtZ0pQt7ucZGOOPsGr QlIijntT0ByxQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Uros Bizjak , Thomas Gleixner , Marc Zyngier , Sasha Levin , linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 6.1 11/12] irqchip/gic: Correct declaration of *percpu_base pointer in union gic_base Date: Fri, 20 Dec 2024 12:13:16 -0500 Message-Id: <20241220171317.512120-11-sashal@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241220171317.512120-1-sashal@kernel.org> References: <20241220171317.512120-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.1.121 Content-Transfer-Encoding: 8bit From: Uros Bizjak [ Upstream commit a1855f1b7c33642c9f7a01991fb763342a312e9b ] percpu_base is used in various percpu functions that expect variable in __percpu address space. Correct the declaration of percpu_base to void __iomem * __percpu *percpu_base; to declare the variable as __percpu pointer. The patch fixes several sparse warnings: irq-gic.c:1172:44: warning: incorrect type in assignment (different address spaces) irq-gic.c:1172:44: expected void [noderef] __percpu *[noderef] __iomem *percpu_base irq-gic.c:1172:44: got void [noderef] __iomem *[noderef] __percpu * ... irq-gic.c:1231:43: warning: incorrect type in argument 1 (different address spaces) irq-gic.c:1231:43: expected void [noderef] __percpu *__pdata irq-gic.c:1231:43: got void [noderef] __percpu *[noderef] __iomem *percpu_base There were no changes in the resulting object files. Signed-off-by: Uros Bizjak Signed-off-by: Thomas Gleixner Acked-by: Marc Zyngier Link: https://lore.kernel.org/all/20241213145809.2918-2-ubizjak@gmail.com Signed-off-by: Sasha Levin --- drivers/irqchip/irq-gic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c index 4c7bae0ec8f9..867b282fa95d 100644 --- a/drivers/irqchip/irq-gic.c +++ b/drivers/irqchip/irq-gic.c @@ -63,7 +63,7 @@ static void gic_check_cpu_features(void) union gic_base { void __iomem *common_base; - void __percpu * __iomem *percpu_base; + void __iomem * __percpu *percpu_base; }; struct gic_chip_data { -- 2.39.5