]> git.ipfire.org Git - thirdparty/qemu.git/commit
Constify all opaque Property pointers
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 18 Dec 2024 13:42:51 +0000 (07:42 -0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 19 Dec 2024 18:36:37 +0000 (19:36 +0100)
commitb1987a2547c8e32fd3c32f504fe8d4bc58b7f961
tree6aed12215ef302f72c914456746f6abfbb11f8f4
parent857c4a8a33ea36d9d2856df33130b26a1aa3a53a
Constify all opaque Property pointers

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>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Lei Yang <leiyang@redhat.com>
Link: https://lore.kernel.org/r/20241218134251.4724-25-richard.henderson@linaro.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
backends/tpm/tpm_util.c
hw/block/xen-block.c
hw/core/qdev-properties-system.c
hw/core/qdev-properties.c
hw/misc/xlnx-versal-trng.c
hw/nvme/nguid.c
hw/s390x/css.c
hw/s390x/s390-pci-bus.c
hw/vfio/pci-quirks.c