Commit 762687ce authored by Thomas Gleixner's avatar Thomas Gleixner

genirq/msi: Make __msi_domain_alloc_irqs() static

Nothing outside of the core code requires this.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Reviewed-by: default avatarAshok Raj <ashok.raj@intel.com>
Reviewed-by: default avatarJason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20221111122014.004725919@linutronix.de
parent fdd53404
...@@ -334,9 +334,8 @@ struct msi_domain_info; ...@@ -334,9 +334,8 @@ struct msi_domain_info;
* MSI_FLAG_USE_DEF_DOM_OPS is not set to avoid breaking existing users and * MSI_FLAG_USE_DEF_DOM_OPS is not set to avoid breaking existing users and
* because these callbacks are obviously mandatory. * because these callbacks are obviously mandatory.
* *
* This is NOT meant to be abused, but it can be useful to build wrappers * __msi_domain_free_irqs() is exposed for PPC pseries to handle extra
* for specialized MSI irq domains which need extra work before and after * work after all interrupts and descriptors have been freed.
* calling __msi_domain_alloc_irqs()/__msi_domain_free_irqs().
*/ */
struct msi_domain_ops { struct msi_domain_ops {
irq_hw_number_t (*get_hwirq)(struct msi_domain_info *info, irq_hw_number_t (*get_hwirq)(struct msi_domain_info *info,
...@@ -425,8 +424,6 @@ int msi_domain_set_affinity(struct irq_data *data, const struct cpumask *mask, ...@@ -425,8 +424,6 @@ int msi_domain_set_affinity(struct irq_data *data, const struct cpumask *mask,
struct irq_domain *msi_create_irq_domain(struct fwnode_handle *fwnode, struct irq_domain *msi_create_irq_domain(struct fwnode_handle *fwnode,
struct msi_domain_info *info, struct msi_domain_info *info,
struct irq_domain *parent); struct irq_domain *parent);
int __msi_domain_alloc_irqs(struct irq_domain *domain, struct device *dev,
int nvec);
int msi_domain_alloc_irqs_descs_locked(struct irq_domain *domain, struct device *dev, int msi_domain_alloc_irqs_descs_locked(struct irq_domain *domain, struct device *dev,
int nvec); int nvec);
int msi_domain_alloc_irqs(struct irq_domain *domain, struct device *dev, int msi_domain_alloc_irqs(struct irq_domain *domain, struct device *dev,
......
...@@ -462,6 +462,8 @@ static inline void msi_sysfs_remove_desc(struct device *dev, struct msi_desc *de ...@@ -462,6 +462,8 @@ static inline void msi_sysfs_remove_desc(struct device *dev, struct msi_desc *de
#endif /* !CONFIG_SYSFS */ #endif /* !CONFIG_SYSFS */
#ifdef CONFIG_GENERIC_MSI_IRQ_DOMAIN #ifdef CONFIG_GENERIC_MSI_IRQ_DOMAIN
static int __msi_domain_alloc_irqs(struct irq_domain *domain, struct device *dev, int nvec);
static inline void irq_chip_write_msi_msg(struct irq_data *data, static inline void irq_chip_write_msi_msg(struct irq_data *data,
struct msi_msg *msg) struct msi_msg *msg)
{ {
...@@ -852,8 +854,8 @@ static int msi_init_virq(struct irq_domain *domain, int virq, unsigned int vflag ...@@ -852,8 +854,8 @@ static int msi_init_virq(struct irq_domain *domain, int virq, unsigned int vflag
return 0; return 0;
} }
int __msi_domain_alloc_irqs(struct irq_domain *domain, struct device *dev, static int __msi_domain_alloc_irqs(struct irq_domain *domain, struct device *dev,
int nvec) int nvec)
{ {
struct msi_domain_info *info = domain->host_data; struct msi_domain_info *info = domain->host_data;
struct msi_domain_ops *ops = info->ops; struct msi_domain_ops *ops = info->ops;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment