qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 24/24] Constify all opaque Property pointers


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v2 24/24] Constify all opaque Property pointers
Date: Wed, 18 Dec 2024 14:54:58 +0100
User-agent: Mozilla Thunderbird

On 18/12/24 14:42, Richard Henderson wrote:
Via sed "s/  Property [*]/  const Property */".

The opaque pointers passed to ObjectProperty callbacks are
the last instances of non-const Property pointers in the tree.
For the most part, these callbacks only use object_field_prop_ptr,
which now takes a const pointer itself.

This logically should have accompanied d36f165d952 which
allowed const Property to be registered.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
  backends/tpm/tpm_util.c          |  4 +-
  hw/block/xen-block.c             |  4 +-
  hw/core/qdev-properties-system.c | 48 ++++++++++----------
  hw/core/qdev-properties.c        | 78 ++++++++++++++++----------------
  hw/misc/xlnx-versal-trng.c       |  2 +-
  hw/nvme/nguid.c                  |  4 +-
  hw/s390x/css.c                   |  4 +-
  hw/s390x/s390-pci-bus.c          |  4 +-
  hw/vfio/pci-quirks.c             |  4 +-
  9 files changed, 76 insertions(+), 76 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]