From: Peter Xu <peterx@redhat.com>
They're actually more commonly used than the helper without _under_bus, because
most callers do have the pci bus on hand. After exporting we can switch a lot
of the call sites to use these two helpers.
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20211028043129.38871-3-peterx@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
---
include/hw/pci/pci.h | 5 +++++
hw/i386/acpi-build.c | 5 ++---
hw/pci/pci.c | 10 +++++-----
hw/pci/pcie.c | 4 +---
hw/ppc/spapr_pci.c | 12 +++++-------
hw/ppc/spapr_pci_nvlink2.c | 7 +++----
hw/ppc/spapr_pci_vfio.c | 4 ++--
hw/s390x/s390-pci-bus.c | 5 ++---