diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2022-11-11 14:54:25 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2022-11-17 15:15:18 +0100 |
commit | 762687ceb31fc296e2e1406559e8bb50251c5277 (patch) | |
tree | 6ac936660ddbc45b214b4f7c0bcb226e591d2879 /kernel | |
parent | genirq/msi: Add missing kernel doc to msi_next_desc() (diff) | |
download | linux-762687ceb31fc296e2e1406559e8bb50251c5277.tar.xz linux-762687ceb31fc296e2e1406559e8bb50251c5277.zip |
genirq/msi: Make __msi_domain_alloc_irqs() static
Nothing outside of the core code requires this.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Ashok Raj <ashok.raj@intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20221111122014.004725919@linutronix.de
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/irq/msi.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/irq/msi.c b/kernel/irq/msi.c index 8a6d0dcab7a2..3ccc7f68804b 100644 --- a/kernel/irq/msi.c +++ b/kernel/irq/msi.c @@ -462,6 +462,8 @@ static inline void msi_sysfs_remove_desc(struct device *dev, struct msi_desc *de #endif /* !CONFIG_SYSFS */ #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, struct msi_msg *msg) { @@ -852,8 +854,8 @@ static int msi_init_virq(struct irq_domain *domain, int virq, unsigned int vflag return 0; } -int __msi_domain_alloc_irqs(struct irq_domain *domain, struct device *dev, - int nvec) +static int __msi_domain_alloc_irqs(struct irq_domain *domain, struct device *dev, + int nvec) { struct msi_domain_info *info = domain->host_data; struct msi_domain_ops *ops = info->ops; |