diff options
author | Greg Kurz | 2020-10-12 12:15:21 +0200 |
---|---|---|
committer | David Gibson | 2020-10-27 15:08:53 +0100 |
commit | ce316b5118c732c5fef23d7763b8c01054bfcdfa (patch) | |
tree | bb08f33f2d6486872e4638280e1058c1230896c0 /include/hw/ppc | |
parent | hw/net: move allocation to the heap due to very large stack frame (diff) | |
download | qemu-ce316b5118c732c5fef23d7763b8c01054bfcdfa.tar.gz qemu-ce316b5118c732c5fef23d7763b8c01054bfcdfa.tar.xz qemu-ce316b5118c732c5fef23d7763b8c01054bfcdfa.zip |
spapr: Move spapr_create_nvdimm_dr_connectors() to core machine code
The spapr_create_nvdimm_dr_connectors() function doesn't need to access
any internal details of the sPAPR NVDIMM implementation. Also, pretty
much like for the LMBs, only spapr_machine_init() is responsible for the
creation of DR connectors for NVDIMMs.
Make this clear by making this function static in hw/ppc/spapr.c.
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <160249772183.757627.7396780936543977766.stgit@bahia.lan>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/hw/ppc')
-rw-r--r-- | include/hw/ppc/spapr_nvdimm.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/hw/ppc/spapr_nvdimm.h b/include/hw/ppc/spapr_nvdimm.h index b834d82f55..490b19a009 100644 --- a/include/hw/ppc/spapr_nvdimm.h +++ b/include/hw/ppc/spapr_nvdimm.h @@ -31,6 +31,5 @@ void spapr_dt_persistent_memory(SpaprMachineState *spapr, void *fdt); bool spapr_nvdimm_validate(HotplugHandler *hotplug_dev, NVDIMMDevice *nvdimm, uint64_t size, Error **errp); void spapr_add_nvdimm(DeviceState *dev, uint64_t slot, Error **errp); -void spapr_create_nvdimm_dr_connectors(SpaprMachineState *spapr); #endif |