Skip to content

hw/qdev-properties: Constify Property* in DeviceClass

Philippe Mathieu-Daudé qemu-devel qemu-trivial 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4hw/qdev-properties: Constify Property* in object_field_prop_ptr()hw/core/qdev-properties.c include/hw/qdev-properties.h+2 -20 replies
2/4hw/qdev-properties: Constify Property* in PropertyInfo::print() handlerhw/core/qdev-properties-system.c include/hw/qdev-properties.h+2 -20 replies
3/4hw/qdev-properties: Constify Property* in PropertyInfo::create() handlerhw/core/qdev-properties.c include/hw/qdev-properties.h+2 -20 replies
4/4hw/qdev-properties: Constify DeviceClass::props_ fieldhw/core/qdev-properties.c include/hw/qdev-core.h softmmu/qdev-monitor.c+8 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] hw/qdev-properties: Constify Property* in DeviceClass

Qualify some Property pointers as 'const' when the structure is accessed read-only.

Philippe Mathieu-Daudé (4):
hw/qdev-properties: Constify Property* in object_field_prop_ptr() hw/qdev-properties: Constify Property* in PropertyInfo::print()
handler
hw/qdev-properties: Constify Property* in PropertyInfo::create()
handler
hw/qdev-properties: Constify DeviceClass::props_ field

 hw/core/qdev-properties-system.c |  2 +-
 hw/core/qdev-properties.c        | 14 +++++++-------
 include/hw/qdev-core.h           |  2 +-
 include/hw/qdev-properties.h     |  6 +++---
 softmmu/qdev-monitor.c           |  4 ++--
 5 files changed, 14 insertions(+), 14 deletions(-)
Signature · 1 line
2.38.1