summaryrefslogtreecommitdiffstats
path: root/include/hw/pci-host/spapr.h
diff options
context:
space:
mode:
authorDavid Gibson2019-09-23 07:43:58 +0200
committerDavid Gibson2019-10-04 11:08:22 +0200
commit258aa5ce1c62bf9cf28dc344f52e13ea3a0a38cd (patch)
tree457ee8ab5ba0e30c2965acd97504f07a2dbe2ea6 /include/hw/pci-host/spapr.h
parentxics: Create sPAPR specific ICS subtype (diff)
downloadqemu-258aa5ce1c62bf9cf28dc344f52e13ea3a0a38cd.tar.gz
qemu-258aa5ce1c62bf9cf28dc344f52e13ea3a0a38cd.tar.xz
qemu-258aa5ce1c62bf9cf28dc344f52e13ea3a0a38cd.zip
spapr: Fold spapr_phb_lsi_qirq() into its single caller
No point having a two-line helper that's used exactly once, and not likely to be used anywhere else in future. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Greg Kurz <groug@kaod.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'include/hw/pci-host/spapr.h')
-rw-r--r--include/hw/pci-host/spapr.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/hw/pci-host/spapr.h b/include/hw/pci-host/spapr.h
index abd87605b2..23506f05d9 100644
--- a/include/hw/pci-host/spapr.h
+++ b/include/hw/pci-host/spapr.h
@@ -128,13 +128,6 @@ struct SpaprPhbState {
#define SPAPR_PCI_NV2ATSD_WIN_SIZE (NVGPU_MAX_NUM * NVGPU_MAX_LINKS * \
64 * KiB)
-static inline qemu_irq spapr_phb_lsi_qirq(struct SpaprPhbState *phb, int pin)
-{
- SpaprMachineState *spapr = SPAPR_MACHINE(qdev_get_machine());
-
- return spapr_qirq(spapr, phb->lsi_table[pin].irq);
-}
-
int spapr_dt_phb(SpaprPhbState *phb, uint32_t intc_phandle, void *fdt,
uint32_t nr_msis, int *node_offset);