Skip to content

simple cleanups in spapr files

Daniel Henrique Barboza qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14hw/ppc/spapr.c: use g_autofree in spapr_dt_chosen()hw/ppc/spapr.c+2 -51 reply
2/14hw/ppc/spapr.c: fail early if no firmware found in machine_init()hw/ppc/spapr.c+11 -132 replies
3/14hw/ppc/spapr_caps.c: use g_autofree in spapr_cap_set_string()hw/ppc/spapr_caps.c+3 -51 reply
4/14hw/ppc/spapr_caps.c: use g_autofree in spapr_cap_get_string()hw/ppc/spapr_caps.c+3 -41 reply
5/14hw/ppc/spapr_caps.c: use g_autofree in spapr_caps_add_properties()hw/ppc/spapr_caps.c+2 -51 reply
6/14hw/ppc/spapr_drc.c: use g_auto in spapr_dt_drc()hw/ppc/spapr_drc.c+12 -180 replies
7/14hw/ppc/spapr_drc.c: use g_autofree in drc_realize()hw/ppc/spapr_drc.c+1 -30 replies
8/14hw/ppc/spapr_drc.c: use g_autofree in drc_unrealize()hw/ppc/spapr_drc.c+1 -30 replies
9/14hw/ppc/spapr_drc.c: use g_autofree in spapr_dr_connector_new()hw/ppc/spapr_drc.c+1 -20 replies
10/14hw/ppc/spapr_drc.c: use g_autofree in spapr_drc_by_index()hw/ppc/spapr_drc.c+2 -40 replies
11/14hw/ppc/spapr_numa.c: simplify spapr_numa_write_assoc_lookup_arrays()hw/ppc/spapr_numa.c+8 -80 replies
12/14spapr_pci_nvlink2.c: use g_autofree in spapr_phb_nvgpu_ram_populate_dt()hw/ppc/spapr_pci_nvlink2.c+4 -60 replies
13/14hw/ppc/spapr_rtas.c: use g_autofree in rtas_ibm_get_system_parameter()hw/ppc/spapr_rtas.c+12 -130 replies
14/14hw/ppc/spapr_vio.c: use g_autofree in spapr_dt_vdevice()hw/ppc/spapr_vio.c+2 -40 replies

Reviews trailers per patch

5 of 14 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPhilippe Mathieu-DaudéDavid Gibson
SeriesR-b
1/14R-b
2/14R-b
3/14R-b
4/14R-b
5/14R-b
6/14
7/14
8/14
9/14
10/14
11/14
12/14
13/14
14/14

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/14] simple cleanups in spapr files

Hi,

These are some cleanups in spapr files I decided to make after seeing Greg adding g_auto* in virtio-9p files.

I also took the opportunity to simplify the logic in some places where I found it to be more complex than needed.

Aside from patch 02, no functional change was made in this series.

Daniel Henrique Barboza (14):
hw/ppc/spapr.c: use g_autofree in spapr_dt_chosen() hw/ppc/spapr.c: fail early if no firmware found in machine_init() hw/ppc/spapr_caps.c: use g_autofree in spapr_cap_set_string() hw/ppc/spapr_caps.c: use g_autofree in spapr_cap_get_string() hw/ppc/spapr_caps.c: use g_autofree in spapr_caps_add_properties() hw/ppc/spapr_drc.c: use g_auto in spapr_dt_drc() hw/ppc/spapr_drc.c: use g_autofree in drc_realize() hw/ppc/spapr_drc.c: use g_autofree in drc_unrealize() hw/ppc/spapr_drc.c: use g_autofree in spapr_dr_connector_new() hw/ppc/spapr_drc.c: use g_autofree in spapr_drc_by_index() hw/ppc/spapr_numa.c: simplify spapr_numa_write_assoc_lookup_arrays() spapr_pci_nvlink2.c: use g_autofree in
spapr_phb_nvgpu_ram_populate_dt()
hw/ppc/spapr_rtas.c: use g_autofree in rtas_ibm_get_system_parameter() hw/ppc/spapr_vio.c: use g_autofree in spapr_dt_vdevice()

 hw/ppc/spapr.c             | 31 +++++++++++--------------
 hw/ppc/spapr_caps.c        | 22 +++++++-----------
 hw/ppc/spapr_drc.c         | 47 ++++++++++++++------------------------
 hw/ppc/spapr_numa.c        | 16 ++++++-------
 hw/ppc/spapr_pci_nvlink2.c | 10 ++++----
 hw/ppc/spapr_rtas.c        | 25 ++++++++++----------
 hw/ppc/spapr_vio.c         |  6 ++---
 7 files changed, 64 insertions(+), 93 deletions(-)
Signature · 1 line
2.35.1