]> git.proxmox.com Git - mirror_qemu.git/commit - hw/i386/acpi-build.c
pci: Export pci_for_each_device_under_bus*()
authorPeter Xu <peterx@redhat.com>
Thu, 28 Oct 2021 04:31:26 +0000 (12:31 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 1 Nov 2021 23:36:11 +0000 (19:36 -0400)
commit2914fc61d5d72c6010d2b1fe8b4048b561e44ef3
treefc91cbc8e40ee5b24b726e01c5a02f5bb910e916
parentb3dcf94f77fdf5bbea76d7101cc2a300d2550adb
pci: Export pci_for_each_device_under_bus*()

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>
hw/i386/acpi-build.c
hw/pci/pci.c
hw/pci/pcie.c
hw/ppc/spapr_pci.c
hw/ppc/spapr_pci_nvlink2.c
hw/ppc/spapr_pci_vfio.c
hw/s390x/s390-pci-bus.c
hw/xen/xen_pt.c
include/hw/pci/pci.h