]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
PCI: hv: Remove unused parameter of hv_msi_free()
authorNam Cao <namcao@linutronix.de>
Wed, 13 Aug 2025 05:53:50 +0000 (07:53 +0200)
committerManivannan Sadhasivam <mani@kernel.org>
Mon, 8 Sep 2025 04:58:40 +0000 (10:28 +0530)
The 'info' parameter of hv_msi_free() is unused. Delete it.

Signed-off-by: Nam Cao <namcao@linutronix.de>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Acked-by: Wei Liu <wei.liu@kernel.org>
drivers/pci/controller/pci-hyperv.c

index d2b7e8ea710b06fa0840934a8b50f94ec6916503..146b43981b27851f8a54839c36b32b9662d6e494 100644 (file)
@@ -1680,7 +1680,6 @@ static void hv_int_desc_free(struct hv_pci_dev *hpdev,
 /**
  * hv_msi_free() - Free the MSI.
  * @domain:    The interrupt domain pointer
- * @info:      Extra MSI-related context
  * @irq:       Identifies the IRQ.
  *
  * The Hyper-V parent partition and hypervisor are tracking the
@@ -1688,8 +1687,7 @@ static void hv_int_desc_free(struct hv_pci_dev *hpdev,
  * table up to date.  This callback sends a message that frees
  * the IRT entry and related tracking nonsense.
  */
-static void hv_msi_free(struct irq_domain *domain, struct msi_domain_info *info,
-                       unsigned int irq)
+static void hv_msi_free(struct irq_domain *domain, unsigned int irq)
 {
        struct hv_pcibus_device *hbus;
        struct hv_pci_dev *hpdev;
@@ -2181,10 +2179,8 @@ static int hv_pcie_domain_alloc(struct irq_domain *d, unsigned int virq, unsigne
 
 static void hv_pcie_domain_free(struct irq_domain *d, unsigned int virq, unsigned int nr_irqs)
 {
-       struct msi_domain_info *info = d->host_data;
-
        for (int i = 0; i < nr_irqs; i++)
-               hv_msi_free(d, info, virq + i);
+               hv_msi_free(d, virq + i);
 
        irq_domain_free_irqs_top(d, virq, nr_irqs);
 }