Skip to content

Commit d51a15a

Browse files
committed
irqchip/gic-v2m: Mark a few functions __init
They are all part of the init sequence. Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 72a3f8f commit d51a15a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/irqchip/irq-gic-v2m.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ static struct msi_domain_info gicv2m_pmsi_domain_info = {
263263
.chip = &gicv2m_pmsi_irq_chip,
264264
};
265265

266-
static void gicv2m_teardown(void)
266+
static void __init gicv2m_teardown(void)
267267
{
268268
struct v2m_data *v2m, *tmp;
269269

@@ -278,7 +278,7 @@ static void gicv2m_teardown(void)
278278
}
279279
}
280280

281-
static int gicv2m_allocate_domains(struct irq_domain *parent)
281+
static __init int gicv2m_allocate_domains(struct irq_domain *parent)
282282
{
283283
struct irq_domain *inner_domain, *pci_domain, *plat_domain;
284284
struct v2m_data *v2m;
@@ -405,7 +405,7 @@ static int __init gicv2m_init_one(struct fwnode_handle *fwnode,
405405
return ret;
406406
}
407407

408-
static const struct of_device_id gicv2m_device_id[] = {
408+
static __initconst struct of_device_id gicv2m_device_id[] = {
409409
{ .compatible = "arm,gic-v2m-frame", },
410410
{},
411411
};
@@ -455,7 +455,7 @@ static int __init gicv2m_of_init(struct fwnode_handle *parent_handle,
455455
#ifdef CONFIG_ACPI
456456
static int acpi_num_msi;
457457

458-
static struct fwnode_handle *gicv2m_get_fwnode(struct device *dev)
458+
static __init struct fwnode_handle *gicv2m_get_fwnode(struct device *dev)
459459
{
460460
struct v2m_data *data;
461461

@@ -470,7 +470,7 @@ static struct fwnode_handle *gicv2m_get_fwnode(struct device *dev)
470470
return data->fwnode;
471471
}
472472

473-
static bool acpi_check_amazon_graviton_quirks(void)
473+
static __init bool acpi_check_amazon_graviton_quirks(void)
474474
{
475475
static struct acpi_table_madt *madt;
476476
acpi_status status;

0 commit comments

Comments
 (0)