]> git.baikalelectronics.ru Git - kernel.git/commitdiff
PCI: hv: Remove unused hv_set_msi_entry_from_desc()
authorYueHaibing <yuehaibing@huawei.com>
Thu, 17 Mar 2022 08:51:30 +0000 (16:51 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 31 Mar 2022 15:12:59 +0000 (10:12 -0500)
Fix the following build error:

  drivers/pci/controller/pci-hyperv.c:769:13: error: ‘hv_set_msi_entry_from_desc’ defined but not used [-Werror=unused-function]
    769 | static void hv_set_msi_entry_from_desc(union hv_msi_entry *msi_entry,

The arm64 implementation of hv_set_msi_entry_from_desc() is not used after
bb676942c3b8 ("PCI: hv: Avoid the retarget interrupt hypercall in
irq_unmask() on ARM64"), so remove it.

Fixes: bb676942c3b8 ("PCI: hv: Avoid the retarget interrupt hypercall in irq_unmask() on ARM64")
Link: https://lore.kernel.org/r/20220317085130.36388-1-yuehaibing@huawei.com
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Acked-by: Boqun Feng <boqun.feng@gmail.com>
drivers/pci/controller/pci-hyperv.c

index df84d221e3de9e4409b0078e2032896a11b2433f..558b35aba610460e10303a3447e58ee4d28575a5 100644 (file)
@@ -766,14 +766,6 @@ static unsigned int hv_msi_get_int_vector(struct irq_data *irqd)
        return irqd->parent_data->hwirq;
 }
 
-static void hv_set_msi_entry_from_desc(union hv_msi_entry *msi_entry,
-                                      struct msi_desc *msi_desc)
-{
-       msi_entry->address = ((u64)msi_desc->msg.address_hi << 32) |
-                             msi_desc->msg.address_lo;
-       msi_entry->data = msi_desc->msg.data;
-}
-
 /*
  * @nr_bm_irqs:                Indicates the number of IRQs that were allocated from
  *                     the bitmap.