[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 28/49] i386: Replace type_register() with type_register_static()
From: |
Paolo Bonzini |
Subject: |
[PULL 28/49] i386: Replace type_register() with type_register_static() |
Date: |
Wed, 11 Dec 2024 17:26:58 +0100 |
From: Zhao Liu <zhao1.liu@intel.com>
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-11-zhao1.liu@intel.com
---
include/hw/i386/pc.h | 4 ++--
target/i386/cpu.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
index 14ee06287da..b3477ad6a29 100644
--- a/include/hw/i386/pc.h
+++ b/include/hw/i386/pc.h
@@ -316,7 +316,7 @@ extern const size_t pc_compat_2_3_len;
}; \
static void pc_machine_init_##suffix(void) \
{ \
- type_register(&pc_machine_type_##suffix); \
+ type_register_static(&pc_machine_type_##suffix); \
} \
type_init(pc_machine_init_##suffix)
@@ -344,7 +344,7 @@ extern const size_t pc_compat_2_3_len;
static void MACHINE_VER_SYM(register, namesym, __VA_ARGS__)(void) \
{ \
MACHINE_VER_DELETION(__VA_ARGS__); \
- type_register(&MACHINE_VER_SYM(info, namesym, __VA_ARGS__)); \
+ type_register_static(&MACHINE_VER_SYM(info, namesym, __VA_ARGS__)); \
} \
type_init(MACHINE_VER_SYM(register, namesym, __VA_ARGS__));
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index 3725dbbc4b3..305f2a41cfb 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -6429,7 +6429,7 @@ static void x86_register_cpu_model_type(const char *name,
X86CPUModel *model)
.class_data = model,
};
- type_register(&ti);
+ type_register_static(&ti);
}
--
2.47.1
- Re: [PULL 16/49] clock: treat outputs and inputs the same in NamedClockList, (continued)
- [PULL 17/49] clock: inline most of qdev_init_clocklist, Paolo Bonzini, 2024/12/11
- [PULL 20/49] hw/block: Replace type_register() with type_register_static(), Paolo Bonzini, 2024/12/11
- [PULL 19/49] arm: Replace type_register() with type_register_static(), Paolo Bonzini, 2024/12/11
- [PULL 21/49] hw/net: Replace type_register() with type_register_static(), Paolo Bonzini, 2024/12/11
- [PULL 22/49] ppc: Replace type_register() with type_register_static(), Paolo Bonzini, 2024/12/11
- [PULL 24/49] hw/scsi: Replace type_register() with type_register_static(), Paolo Bonzini, 2024/12/11
- [PULL 23/49] hw/rtc: Replace type_register() with type_register_static(), Paolo Bonzini, 2024/12/11
- [PULL 26/49] hw/usb: Replace type_register() with type_register_static(), Paolo Bonzini, 2024/12/11
- [PULL 25/49] hw/sensor: Replace type_register() with type_register_static(), Paolo Bonzini, 2024/12/11
- [PULL 28/49] i386: Replace type_register() with type_register_static(),
Paolo Bonzini <=
- [PULL 27/49] hw/virtio: Replace type_register() with type_register_static(), Paolo Bonzini, 2024/12/11
- [PULL 29/49] target/mips: Replace type_register() with type_register_static(), Paolo Bonzini, 2024/12/11
- [PULL 30/49] target/sparc: Replace type_register() with type_register_static(), Paolo Bonzini, 2024/12/11
- [PULL 31/49] target/xtensa: Replace type_register() with type_register_static(), Paolo Bonzini, 2024/12/11
- [PULL 32/49] ui: Replace type_register() with type_register_static(), Paolo Bonzini, 2024/12/11
- [PULL 33/49] script/codeconverter/qom_type_info: Deprecate MakeTypeRegisterStatic and MakeTypeRegisterNotStatic, Paolo Bonzini, 2024/12/11
- [PULL 34/49] qom/object: Remove type_register(), Paolo Bonzini, 2024/12/11
- [PULL 35/49] bql: check that the BQL is not dropped within marked sections, Paolo Bonzini, 2024/12/11
- [PULL 36/49] rust: cell: add BQL-enforcing Cell variant, Paolo Bonzini, 2024/12/11
- [PULL 38/49] rust: define prelude, Paolo Bonzini, 2024/12/11