Skip to content

qom+coccinelle: add and use object_new_with_class()

Radim Krčmář qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2qom: add object_new_with_class()include/qom/object.h qom/object.c+17 -02 replies
2/2coccinelle: use object_new_with_class() in obvious caseshw/arm/exynos4210.c hw/arm/highbank.c hw/arm/integratorcp.c +12 more+20 -152 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchEduardo HabkostAlistair Francis
1/2R-b R-b
2/2R-b R-b

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/2] qom+coccinelle: add and use object_new_with_class()

This series performs a simple replacement of object_new(object_class_get_name(class)) by object_new_with_class(class) in the spirit of existing object_new_with_type().

Cc Igor Mitsyanko <[email protected]>
Cc Peter Maydell <[email protected]>
Cc Rob Herring <[email protected]>
Cc "Edgar E. Iglesias" <[email protected]>
Cc Alistair Francis <[email protected]>
Cc "Andreas Färber" <[email protected]>
Cc Richard Henderson <[email protected]>
Cc Paolo Bonzini <[email protected]>
Cc Eduardo Habkost <[email protected]>
Cc Alexander Graf <[email protected]>
Cc Max Filippov <[email protected]>

Radim Krčmář (2):
qom: add object_new_with_class()
coccinelle: use object_new_with_class() in obvious cases

 hw/arm/exynos4210.c                            |  2 +-
 hw/arm/highbank.c                              |  2 +-
 hw/arm/integratorcp.c                          |  2 +-
 hw/arm/realview.c                              |  2 +-
 hw/arm/versatilepb.c                           |  2 +-
 hw/arm/vexpress.c                              |  2 +-
 hw/arm/xilinx_zynq.c                           |  2 +-
 include/qom/object.h                           | 12 ++++++++++++
 qom/cpu.c                                      |  2 +-
 qom/object.c                                   |  5 +++++
 scripts/coccinelle/object_new_with_class.cocci |  5 +++++
 target-alpha/cpu.c                             |  2 +-
 target-i386/cpu.c                              |  2 +-
 target-m68k/helper.c                           |  2 +-
 target-s390x/cpu_models.c                      |  2 +-
 target-xtensa/helper.c                         |  2 +-
 vl.c                                           |  4 ++--
 17 files changed, 37 insertions(+), 15 deletions(-)
 create mode 100644 scripts/coccinelle/object_new_with_class.cocci
Signature · 1 line
2.10.0