Export MSI domain management functions to allow the TI SCI INTA MSI
driver to be compiled as a module. The following symbols are now
available for module use:
- msi_domain_insert_msi_desc
- msi_domain_free_msi_descs_range
- msi_setup_device_data
- msi_create_irq_domain
- msi_domain_alloc_irqs_all_locked
Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
---
kernel/irq/msi.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/kernel/irq/msi.c b/kernel/irq/msi.c
index 9febe797a5f6..4af232b6796b 100644
--- a/kernel/irq/msi.c
+++ b/kernel/irq/msi.c
@@ -163,6 +163,7 @@ int msi_domain_insert_msi_desc(struct device *dev, unsigned int domid,
return msi_insert_desc(dev, desc, domid, init_desc->msi_index);
}
+EXPORT_SYMBOL_GPL(msi_domain_insert_msi_desc);
static bool msi_desc_match(struct msi_desc *desc, enum msi_desc_filter filter)
{
@@ -235,6 +236,7 @@ void msi_domain_free_msi_descs_range(struct device *dev, unsigned int domid,
msi_domain_free_descs(dev, &ctrl);
}
+EXPORT_SYMBOL_GPL(msi_domain_free_msi_descs_range);
/**
* msi_domain_add_simple_msi_descs - Allocate and initialize MSI descriptors
@@ -342,6 +344,7 @@ int msi_setup_device_data(struct device *dev)
devres_add(dev, md);
return 0;
}
+EXPORT_SYMBOL_GPL(msi_setup_device_data);
/**
* __msi_lock_descs - Lock the MSI descriptor storage of a device
@@ -910,6 +913,7 @@ struct irq_domain *msi_create_irq_domain(struct fwnode_handle *fwnode,
{
return __msi_create_irq_domain(fwnode, info, 0, parent);
}
+EXPORT_SYMBOL_GPL(msi_create_irq_domain);
/**
* msi_create_parent_irq_domain - Create an MSI-parent interrupt domain
@@ -1472,6 +1476,7 @@ int msi_domain_alloc_irqs_all_locked(struct device *dev, unsigned int domid, int
return msi_domain_alloc_locked(dev, &ctrl);
}
+EXPORT_SYMBOL_GPL(msi_domain_alloc_irqs_all_locked);
static struct msi_map __msi_domain_alloc_irq_at(struct device *dev, unsigned int domid,
unsigned int index,
--
2.34.1
On Mon, Jul 07 2025 at 17:35, Guillaume La Roque wrote: The made up subsystem prefix is not really useful. See: https://www.kernel.org/doc/html/latest/process/maintainer-tip.html#patch-subject > Export MSI domain management functions to allow the TI SCI INTA MSI > driver to be compiled as a module. The following symbols are now > available for module use: While symbols is technically correct, it's way simpler to understand that these are functions. > - msi_domain_insert_msi_desc And with that you want to use function notation, i.e. foo() instead of foo. Thanks, tglx
Le 18/07/2025 à 22:57, Thomas Gleixner a écrit : > On Mon, Jul 07 2025 at 17:35, Guillaume La Roque wrote: > > The made up subsystem prefix is not really useful. See: > > https://www.kernel.org/doc/html/latest/process/maintainer-tip.html#patch-subject > >> Export MSI domain management functions to allow the TI SCI INTA MSI >> driver to be compiled as a module. The following symbols are now >> available for module use: > While symbols is technically correct, it's way simpler to understand > that these are functions. > >> - msi_domain_insert_msi_desc > And with that you want to use function notation, i.e. foo() instead of foo. > > Thanks, > > tglx Thanks for feedback i'll fix in v2. Guillaume
© 2016 - 2025 Red Hat, Inc.