From 66832f5e5c0c805544c23433a1e9ab30aaa01633 Mon Sep 17 00:00:00 2001 From: Zhang Jiao Date: Thu, 12 Dec 2024 10:37:36 +0800 Subject: [PATCH] hw/pci: Remove unused pci_irq_pulse() method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cheery-pick from ef45f46f382a5e2c41c39c71fd3364cff4f41bf5 Last use of pci_irq_pulse() was removed 7 years ago in commit 5e9aa92eb1 ("hw/block: Fix pin-based interrupt behaviour of NVMe"). Signed-off-by: Philippe Mathieu-Daudé philmd@linaro.org Reviewed-by: Thomas Huth thuth@redhat.com Message-ID: 20241122103418.539-1-philmd@linaro.org Signed-off-by: Thomas Huth thuth@redhat.com Signed-off-by: Zhang Jiao zhangjiao2_yewu@cmss.chinamobile.com --- include/hw/pci/pci.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h index a0cf893bfd..3811724d31 100644 --- a/include/hw/pci/pci.h +++ b/include/hw/pci/pci.h @@ -753,16 +753,6 @@ static inline void pci_irq_deassert(PCIDevice *pci_dev) pci_set_irq(pci_dev, 0); } -/* - * FIXME: PCI does not work this way. - * All the callers to this method should be fixed. - */ -static inline void pci_irq_pulse(PCIDevice *pci_dev) -{ - pci_irq_assert(pci_dev); - pci_irq_deassert(pci_dev); -} - static inline int pci_is_express(const PCIDevice *d) { return d->cap_present & QEMU_PCI_CAP_EXPRESS; -- 2.41.0.windows.1