mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
hw/core/qdev-properties: Constify Property argument to PropertyInfo.print
This logically should have accompanied d36f165d95
which
allowed const Property to be registered.
There is exactly one instance of this method: print_pci_devfn.
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-24-richard.henderson@linaro.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
e9c0346a95
commit
857c4a8a33
2 changed files with 2 additions and 2 deletions
|
@ -869,7 +869,7 @@ out:
|
|||
visit_end_alternate(v, (void **) &alt);
|
||||
}
|
||||
|
||||
static int print_pci_devfn(Object *obj, Property *prop, char *dest,
|
||||
static int print_pci_devfn(Object *obj, const Property *prop, char *dest,
|
||||
size_t len)
|
||||
{
|
||||
int32_t *ptr = object_field_prop_ptr(obj, prop);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue