Message ID | 20221021235523.76585-1-konrad.dybcio@somainline.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp959539wrr; Fri, 21 Oct 2022 17:02:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4mro2IwcW2uCKwuRzP12boa2SczC2zbquFJx/8FHoky8OszQnj3mFRqCCWArDv034loyTL X-Received: by 2002:a17:907:b08:b0:78e:2f4c:882c with SMTP id h8-20020a1709070b0800b0078e2f4c882cmr17317575ejl.293.1666396938252; Fri, 21 Oct 2022 17:02:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666396938; cv=none; d=google.com; s=arc-20160816; b=N5I1UqrrZFrrHDm7Jwz/2zNa5YJfFFrnMIp28qwNnKyhwJNGPIeQx1hbO2cBA+YFci Ks/0IXi40fkbXzk4NyJStLkjB1CC1y8aCkct7OJJFCsskrw7J7/rrHo5wjRvj6/17q4l xCSo41s93/cVVliaDnL7cnce7QSBibFF9UqcfWvu96LaQKL/cAT/3utjP8Sa5uZ1jRyS ydB35ii2ic9Kp1fyypO9MaiNOZnbPmbaXARPiwdSMwaQq9R+jS1v7gLDdXbOzo8n9uix GeFpNkXLT9HW8MfBimexd+tyH/aE63dtns2+LD7+8JrTKh/a2rH6W5g0mwKK0Kx/ljeU R2xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=+fcny/TFuBZxDm6JirVKHsLp9kPz9qhsjGo1kolOUCY=; b=c0jfqN4fqioBv3JO2X9w5xRuP+Rb7Q5oaOscgp2b8Ay6HfzC40ttl3mWVzphpBPqeb 6OqYoP6dssCDWwbzNVwyzGj6sVpmK+rWwf0tMUnRRyPNNDu3f6GKd12hpYNhOP2KscKe nHP4BrYNB7orCJJp5jX3sVg4/kF1QDS8vgCmAXBRWc3NUVh6NX7p6HfPyVuUptCoL6yT QALRm95aBVhb+3PzOuvuHpBjMVVPBtoXVvxFuNdgpE4HQBDe8dfF32Lqh1phpyVjpL1r J7am9RVFcLGa9PJissN6cdvhTUeD9c9F08OuooYOUMsTBRZGBZzMRL39UW9vf3W7Qury KsRQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hu9-20020a170907a08900b007a09ffe2278si472724ejc.359.2022.10.21.17.01.52; Fri, 21 Oct 2022 17:02:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229841AbiJUXz4 (ORCPT <rfc822;pwkd43@gmail.com> + 99 others); Fri, 21 Oct 2022 19:55:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229874AbiJUXzz (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 21 Oct 2022 19:55:55 -0400 Received: from relay08.th.seeweb.it (relay08.th.seeweb.it [5.144.164.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55BA618C400 for <linux-kernel@vger.kernel.org>; Fri, 21 Oct 2022 16:55:48 -0700 (PDT) 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 <konrad.dybcio@somainline.org> To: asahi@lists.linux.dev, Hector Martin <marcan@marcan.st>, Sven Peter <sven@svenpeter.dev>, Alyssa Rosenzweig <alyssa@rosenzweig.io> Cc: Konrad Dybcio <konrad.dybcio@somainline.org>, Thomas Gleixner <tglx@linutronix.de>, Marc Zyngier <maz@kernel.org>, 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747343836303091426?= X-GMAIL-MSGID: =?utf-8?q?1747343836303091426?= |
Series |
irqchip/apple-aic: Mark aic_info structs __initconst
|
|
Commit Message
Konrad Dybcio
Oct. 21, 2022, 11:55 p.m. UTC
These structs hold information used only at init time that never
gets modified, hence mark them __initconst.
Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
---
drivers/irqchip/irq-apple-aic.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Comments
On 22.10.2022 01:55, Konrad Dybcio wrote: > These structs hold information used only at init time that never > gets modified, hence mark them __initconst. > > Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org> > --- Forgot to add: Suggested-by: Marc Zyngier <maz@kernel.org> Konrad > 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,
On Sat, 22 Oct 2022 at 01:04, Konrad Dybcio <konrad.dybcio@somainline.org> wrote: > > > > On 22.10.2022 01:55, Konrad Dybcio wrote: > > These structs hold information used only at init time that never > > gets modified, hence mark them __initconst. > > > > Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org> Reviewed-by: Eric Curtin <ecurtin@redhat.com> > > --- > Forgot to add: > > Suggested-by: Marc Zyngier <maz@kernel.org> > > > Konrad > > 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, >
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,