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: Thomas Gleixner <tglx@linutronix.de>,
Marc Zyngier <maz@kernel.org>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] irqchip/apple-aic: Mark aic_info structs __initconst
Date: Sat, 22 Oct 2022 01:57:38 +0200 [thread overview]
Message-ID: <cccebca9-69a9-523c-dd5e-85d17f0946b6@somainline.org> (raw)
In-Reply-To: <20221021235523.76585-1-konrad.dybcio@somainline.org>
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,
next prev parent reply other threads:[~2022-10-21 23:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-21 23:55 Konrad Dybcio
2022-10-21 23:57 ` Konrad Dybcio [this message]
2022-10-22 13:49 ` Eric Curtin
2022-11-26 13:34 ` [irqchip: irq/irqchip-next] " irqchip-bot for Konrad Dybcio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cccebca9-69a9-523c-dd5e-85d17f0946b6@somainline.org \
--to=konrad.dybcio@somainline.org \
--cc=alyssa@rosenzweig.io \
--cc=asahi@lists.linux.dev \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcan@marcan.st \
--cc=maz@kernel.org \
--cc=sven@svenpeter.dev \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®