diff options
author | Konrad Dybcio <konrad.dybcio@somainline.org> | 2022-10-22 01:55:23 +0200 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2022-11-26 13:29:42 +0000 |
commit | d46b99656a16c450681985661a249dbb18e55cc4 (patch) | |
tree | c39580985eb5a2100dc87e6b7035a47f2bee5ca5 /drivers/irqchip/irq-apple-aic.c | |
parent | 247f34f7b80357943234f93f247a1ae6b6c3a740 (diff) |
irqchip/apple-aic: Mark aic_info structs __initconst
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>
Suggested-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Eric Curtin <ecurtin@redhat.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221021235523.76585-1-konrad.dybcio@somainline.org
Diffstat (limited to 'drivers/irqchip/irq-apple-aic.c')
-rw-r--r-- | drivers/irqchip/irq-apple-aic.c | 6 |
1 files 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, |