mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 18:44:58 -06:00
ppc: Replace type_register() with type_register_static()
Replace type_register() with type_register_static() because type_register() will be deprecated. Signed-off-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Link: https://lore.kernel.org/r/20241029085934.2799066-5-zhao1.liu@intel.com
This commit is contained in:
parent
29ec04f089
commit
6e0a88837a
2 changed files with 2 additions and 2 deletions
|
@ -4723,7 +4723,7 @@ static void spapr_machine_latest_class_options(MachineClass *mc)
|
|||
static void MACHINE_VER_SYM(register, spapr, __VA_ARGS__)(void) \
|
||||
{ \
|
||||
MACHINE_VER_DELETION(__VA_ARGS__); \
|
||||
type_register(&MACHINE_VER_SYM(info, spapr, __VA_ARGS__)); \
|
||||
type_register_static(&MACHINE_VER_SYM(info, spapr, __VA_ARGS__)); \
|
||||
} \
|
||||
type_init(MACHINE_VER_SYM(register, spapr, __VA_ARGS__))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue