PCI: replace stray uses of PCI_{DEVFN,BDF}2()
authorJan Beulich <jbeulich@suse.com>
Thu, 28 Apr 2022 14:13:23 +0000 (16:13 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 28 Apr 2022 14:13:23 +0000 (16:13 +0200)
commitee68339aeee4afa78749b1333c95071196b60c36
tree3cb748fe49d02dba7dfe6e33aeddc2adfc34e822
parent2c992810854a15b41be920519ce83a4a328d5168
PCI: replace stray uses of PCI_{DEVFN,BDF}2()

There's no good reason to use these when we already have a pci_sbdf_t
type object available. This extends to the use of PCI_BUS() in
pci_ecam_map_bus() as well.

No change to generated code (with gcc11 at least, and I have to admit
that I didn't expect compilers to necessarily be able to spot the
optimization potential on the original code).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
xen/arch/arm/pci/ecam.c
xen/arch/x86/msi.c
xen/drivers/passthrough/vtd/qinval.c