mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
qom: Constify TypeInfo::class_data
All callers now correctly expect a const class data. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20250424194905.82506-5-philmd@linaro.org>
This commit is contained in:
parent
12d1a768bd
commit
b282b859cf
18 changed files with 21 additions and 21 deletions
|
@ -2497,13 +2497,13 @@ void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
|
|||
|
||||
generic_type_info.parent = base_name;
|
||||
generic_type_info.class_init = virtio_pci_base_class_init;
|
||||
generic_type_info.class_data = (void *)t;
|
||||
generic_type_info.class_data = t;
|
||||
|
||||
assert(!t->non_transitional_name);
|
||||
assert(!t->transitional_name);
|
||||
} else {
|
||||
base_type_info.class_init = virtio_pci_base_class_init;
|
||||
base_type_info.class_data = (void *)t;
|
||||
base_type_info.class_data = t;
|
||||
}
|
||||
|
||||
type_register_static(&base_type_info);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue