spapr: Move spapr_create_nvdimm_dr_connectors() to core machine code
commitce316b5118c732c5fef23d7763b8c01054bfcdfa
authorGreg Kurz <groug@kaod.org>
Mon, 12 Oct 2020 10:15:21 +0000 (12 12:15 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 27 Oct 2020 14:08:53 +0000 (28 01:08 +1100)
treebb08f33f2d6486872e4638280e1058c1230896c0
parent2d154d2694009f9294e34875059e3a650ee5110a
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>
hw/ppc/spapr.c
hw/ppc/spapr_nvdimm.c
include/hw/ppc/spapr_nvdimm.h