mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
arm: 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-2-zhao1.liu@intel.com
This commit is contained in:
parent
feccfa77be
commit
f345627668
4 changed files with 5 additions and 5 deletions
|
@ -1731,7 +1731,7 @@ static void armsse_register_types(void)
|
|||
.class_init = armsse_class_init,
|
||||
.class_data = (void *)&armsse_variants[i],
|
||||
};
|
||||
type_register(&ti);
|
||||
type_register_static(&ti);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2065,8 +2065,8 @@ static const TypeInfo smmuv3_iommu_memory_region_info = {
|
|||
|
||||
static void smmuv3_register_types(void)
|
||||
{
|
||||
type_register(&smmuv3_type_info);
|
||||
type_register(&smmuv3_iommu_memory_region_info);
|
||||
type_register_static(&smmuv3_type_info);
|
||||
type_register_static(&smmuv3_iommu_memory_region_info);
|
||||
}
|
||||
|
||||
type_init(smmuv3_register_types)
|
||||
|
|
|
@ -2755,7 +2755,7 @@ void arm_cpu_register(const ARMCPUInfo *info)
|
|||
};
|
||||
|
||||
type_info.name = g_strdup_printf("%s-" TYPE_ARM_CPU, info->name);
|
||||
type_register(&type_info);
|
||||
type_register_static(&type_info);
|
||||
g_free((void *)type_info.name);
|
||||
}
|
||||
|
||||
|
|
|
@ -841,7 +841,7 @@ void aarch64_cpu_register(const ARMCPUInfo *info)
|
|||
};
|
||||
|
||||
type_info.name = g_strdup_printf("%s-" TYPE_ARM_CPU, info->name);
|
||||
type_register(&type_info);
|
||||
type_register_static(&type_info);
|
||||
g_free((void *)type_info.name);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue