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 AF89781728; Mon, 6 Jan 2025 15:56:23 +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=1736178983; cv=none; b=hc+Y1oNPTvahvEX/hjn7gFvt1DE7vIoIfVvaPAm9zf8lIO8pmI+inQU6qK3l1vuFcgRsWpittqk8f8q4kRtVzFRNfLOth0jc4QY9bkF+ZhAkOW4BKfqdBKhWiYJhX8trpVSrUoX88xKr5mxX7UqZd2DIEQav7LC3D1nRYvD4g0M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736178983; c=relaxed/simple; bh=MGhp82U/E0OLVf/Y6Zut4BaHHfFLzV3eCDCcSE36b+M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=o9r3Skp7jSkval0ScwZ766KKV2esE+GrHVyZSgxC9ko4lXmr5ug4I6UN6sOVbF7t+oqRUkRmynfLco/+vaRP2GQ4fVcNCU1ZDQqBXnbxSMH0PYYdqSz2w3HHn4bNOQtf4BP2EMUG72pQyoED3Yy6MNR7fLwTrX3xMKPT8s2kqcw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=glZXIKGP; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="glZXIKGP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38F20C4CED2; Mon, 6 Jan 2025 15:56:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736178983; bh=MGhp82U/E0OLVf/Y6Zut4BaHHfFLzV3eCDCcSE36b+M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=glZXIKGPB0RJvY1gkHcud3xuYixhZqDXigC8hAShxBigwero0ba2GiohxguRr/1w9 p6yb0riJiH3g3nXYDtBbVSeFgeR7tNI7isYO3yXdlULS/kP/oBEyzgwpbXqSJFJwWq WaUEQyDPnZi1VWtugQcLsiV7Y0492bd65PMnkY5Q= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Uros Bizjak , Thomas Gleixner , Marc Zyngier , Sasha Levin Subject: [PATCH 5.15 156/168] irqchip/gic: Correct declaration of *percpu_base pointer in union gic_base Date: Mon, 6 Jan 2025 16:17:44 +0100 Message-ID: <20250106151144.324512105@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250106151138.451846855@linuxfoundation.org> References: <20250106151138.451846855@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ 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 99077f30f699..c941037199c8 100644 --- a/drivers/irqchip/irq-gic.c +++ b/drivers/irqchip/irq-gic.c @@ -62,7 +62,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