From patchwork Fri Oct 21 23:55:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13015599 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 7B2E0C38A2D for ; Fri, 21 Oct 2022 23:57:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=3dYK1u61FwEkMpJ5YervOMtPeIYuoaE44gABL/NZ+Ig=; b=dWgGKe1TqJvdJY xJxe7Hb431AMBUDfwRZDPhXGftKZ8oCAGrjUeobgwHWvodmz3KZzcQNjH0MFEqZoCeIIBVmM5qF4T 8CVKQs3QhPeqvUHLAm5U9SWh0oKTGGEHvGIP/6UkEpHB1cBth1CtJvw1RwrPNEKz9xGE7L45X1aaY R+2+KvJgu9HzQzsvKG2tkBQmkdiE8Lo2crywq8lGfDkmKLnDjOpBiuoxKi+nb9q2jN2HeULyzZ/Pc vA2HLCKl4sci4h9O2V1L9j/APhxfraZj7ADUb+D49qZpHpKIpqsUk9Grp/faQg4rjMMISFW0yF+PF DuxOaiR2yp3QAMbxlMJA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1om1rq-00ASR0-3C; Fri, 21 Oct 2022 23:55:58 +0000 Received: from relay07.th.seeweb.it ([5.144.164.168]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1om1rm-00ASPD-Pg for linux-arm-kernel@lists.infradead.org; Fri, 21 Oct 2022 23:55:57 +0000 Received: from localhost.localdomain (95.49.29.134.neoplus.adsl.tpnet.pl [95.49.29.134]) by m-r2.th.seeweb.it (Postfix) with ESMTPA id E35D03F3EF; Sat, 22 Oct 2022 01:55:44 +0200 (CEST) From: Konrad Dybcio To: asahi@lists.linux.dev, Hector Martin , Sven Peter , Alyssa Rosenzweig Cc: Konrad Dybcio , Thomas Gleixner , Marc Zyngier , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] irqchip/apple-aic: Mark aic_info structs __initconst Date: Sat, 22 Oct 2022 01:55:23 +0200 Message-Id: <20221021235523.76585-1-konrad.dybcio@somainline.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221021_165555_033539_438A299B X-CRM114-Status: UNSURE ( 8.15 ) X-CRM114-Notice: Please train this message. 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 These structs hold information used only at init time that never gets modified, hence mark them __initconst. Signed-off-by: Konrad Dybcio Reviewed-by: Eric Curtin --- drivers/irqchip/irq-apple-aic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-apple-aic.c b/drivers/irqchip/irq-apple-aic.c index 1c2813ad8bbe..ae3437f03e6c 100644 --- a/drivers/irqchip/irq-apple-aic.c +++ b/drivers/irqchip/irq-apple-aic.c @@ -248,14 +248,14 @@ struct aic_info { bool fast_ipi; }; -static const struct aic_info aic1_info = { +static const struct aic_info aic1_info __initconst = { .version = 1, .event = AIC_EVENT, .target_cpu = AIC_TARGET_CPU, }; -static const struct aic_info aic1_fipi_info = { +static const struct aic_info aic1_fipi_info __initconst = { .version = 1, .event = AIC_EVENT, @@ -264,7 +264,7 @@ static const struct aic_info aic1_fipi_info = { .fast_ipi = true, }; -static const struct aic_info aic2_info = { +static const struct aic_info aic2_info __initconst = { .version = 2, .irq_cfg = AIC2_IRQ_CFG,