On 2026/09/11 08:35 PM, Marc-André Lureau wrote: > Use object_property_add_qapi() with any_type_info for the "fdt" > property, since the FDT structure is dynamically shaped at runtime and > cannot be represented as a static QAPI type. > > Signed-off-by: Marc-André Lureau <[email protected]> > --- > hw/ppc/spapr_drc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/ppc/spapr_drc.c b/hw/ppc/spapr_drc.c > index 64f9ca29b02e..740149ffdf3e 100644 > --- a/hw/ppc/spapr_drc.c > +++ b/hw/ppc/spapr_drc.c > @@ -587,7 +587,7 @@ static void spapr_dr_connector_instance_init(Object *obj) > object_property_add_uint32_ptr(obj, "id", &drc->id, OBJ_PROP_FLAG_READ); > object_property_add_qapi(obj, "index", &uint32_type_info, prop_get_index, > NULL, NULL, NULL); > - object_property_add(obj, "fdt", "struct", prop_get_fdt, > + object_property_add_qapi(obj, "fdt", &any_type_info, prop_get_fdt,
Reviewed-by: Amit Machhiwal <[email protected]> Thanks, Amit > NULL, NULL, NULL); > drc->state = drck->empty_state; > } > > -- > 2.55.0.543.g5ebe2ebe4ea8 > >
