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
This commit is contained in:
parent
247f34f7b8
commit
d46b99656a
|
@ -248,14 +248,14 @@ struct aic_info {
|
||||||
bool fast_ipi;
|
bool fast_ipi;
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct aic_info aic1_info = {
|
static const struct aic_info aic1_info __initconst = {
|
||||||
.version = 1,
|
.version = 1,
|
||||||
|
|
||||||
.event = AIC_EVENT,
|
.event = AIC_EVENT,
|
||||||
.target_cpu = AIC_TARGET_CPU,
|
.target_cpu = AIC_TARGET_CPU,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct aic_info aic1_fipi_info = {
|
static const struct aic_info aic1_fipi_info __initconst = {
|
||||||
.version = 1,
|
.version = 1,
|
||||||
|
|
||||||
.event = AIC_EVENT,
|
.event = AIC_EVENT,
|
||||||
|
@ -264,7 +264,7 @@ static const struct aic_info aic1_fipi_info = {
|
||||||
.fast_ipi = true,
|
.fast_ipi = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct aic_info aic2_info = {
|
static const struct aic_info aic2_info __initconst = {
|
||||||
.version = 2,
|
.version = 2,
|
||||||
|
|
||||||
.irq_cfg = AIC2_IRQ_CFG,
|
.irq_cfg = AIC2_IRQ_CFG,
|
||||||
|
|
Loading…
Reference in New Issue