diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-02-09 22:15:54 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-04-25 17:00:41 +0200 |
| commit | f1fa787b92c52d1034de164d2a26771ff969454e (patch) | |
| tree | 4a4748bec5907d9420e61c6e70d9da7ee1c93174 /hw/core/machine.c | |
| parent | fbb23135d691d20f713bf2318e1cf6575e77cda7 (diff) | |
| download | focaccia-qemu-f1fa787b92c52d1034de164d2a26771ff969454e.tar.gz focaccia-qemu-f1fa787b92c52d1034de164d2a26771ff969454e.zip | |
qom: Have class_base_init() take a const data argument
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20250424194905.82506-3-philmd@linaro.org>
Diffstat (limited to 'hw/core/machine.c')
| -rw-r--r-- | hw/core/machine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/core/machine.c b/hw/core/machine.c index abfcedd4a5..bbff84855a 100644 --- a/hw/core/machine.c +++ b/hw/core/machine.c @@ -1243,7 +1243,7 @@ static void machine_class_init(ObjectClass *oc, void *data) "Memory size configuration"); } -static void machine_class_base_init(ObjectClass *oc, void *data) +static void machine_class_base_init(ObjectClass *oc, const void *data) { MachineClass *mc = MACHINE_CLASS(oc); mc->max_cpus = mc->max_cpus ?: 1; |