[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 20/24] hw/gpio/aspeed: Fix definition of AspeedGPIOClass
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 20/24] hw/gpio/aspeed: Fix definition of AspeedGPIOClass |
Date: |
Tue, 10 Jun 2025 14:56:29 +0200 |
From: Zhenzhong Duan <zhenzhong.duan@intel.com>
AspeedGPIOClass's parent is SysBusDeviceClass rather than SysBusDevice.
This isn't catastrophic only because sizeof(SysBusDevice) >
sizeof(SysBusDeviceClass).
Fixes: 4b7f956862dc ("hw/gpio: Add basic Aspeed GPIO model for AST2400 and
AST2500")
Closes: https://lists.gnu.org/archive/html/qemu-devel/2025-06/msg00586.html
Suggested-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Message-ID: <20250606092406.229833-4-zhenzhong.duan@intel.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
include/hw/gpio/aspeed_gpio.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/hw/gpio/aspeed_gpio.h b/include/hw/gpio/aspeed_gpio.h
index e1e6c543339..e6b2fe71b50 100644
--- a/include/hw/gpio/aspeed_gpio.h
+++ b/include/hw/gpio/aspeed_gpio.h
@@ -70,7 +70,7 @@ typedef struct AspeedGPIOReg {
} AspeedGPIOReg;
struct AspeedGPIOClass {
- SysBusDevice parent_obj;
+ SysBusDeviceClass parent_class;
const GPIOSetProperties *props;
uint32_t nr_gpio_pins;
uint32_t nr_gpio_sets;
--
2.49.0
- [PULL 10/24] pc-bios: ensure installed ROMs don't have execute permissions, (continued)
- [PULL 10/24] pc-bios: ensure installed ROMs don't have execute permissions, Philippe Mathieu-Daudé, 2025/06/10
- [PULL 11/24] MAINTAINERS: Update Akihiko Odaki's affiliation, Philippe Mathieu-Daudé, 2025/06/10
- [PULL 12/24] tests/functional: Add a test for the Arduino UNO machine, Philippe Mathieu-Daudé, 2025/06/10
- [PULL 14/24] hw/core/cpu: Move CacheType to general cpu.h, Philippe Mathieu-Daudé, 2025/06/10
- [PULL 15/24] hw/gpio/pca9552: Avoid using g_newa(), Philippe Mathieu-Daudé, 2025/06/10
- [PULL 17/24] tests/unit/test-char: Avoid using g_alloca(), Philippe Mathieu-Daudé, 2025/06/10
- [PULL 13/24] accel/hvf: Fix TYPE_HVF_ACCEL instance size, Philippe Mathieu-Daudé, 2025/06/10
- [PULL 16/24] backends/tpm: Avoid using g_alloca(), Philippe Mathieu-Daudé, 2025/06/10
- [PULL 18/24] hw/virtio/virtio-mem: Fix definition of VirtIOMEMClass, Philippe Mathieu-Daudé, 2025/06/10
- [PULL 19/24] hw/virtio/virtio-pmem: Fix definition of VirtIOPMEMClass, Philippe Mathieu-Daudé, 2025/06/10
- [PULL 20/24] hw/gpio/aspeed: Fix definition of AspeedGPIOClass,
Philippe Mathieu-Daudé <=
- [PULL 21/24] hw/riscv/riscv-iommu: Remove definition of RISCVIOMMU[Pci|Sys]Class, Philippe Mathieu-Daudé, 2025/06/10
- [PULL 23/24] hw/net/i82596: Update datasheet URL, Philippe Mathieu-Daudé, 2025/06/10
- [PULL 24/24] hw/net/i82596: Factor configure function out, Philippe Mathieu-Daudé, 2025/06/10
- [PULL 22/24] hw/misc/stm32_rcc: Fix stm32_rcc_write() arguments order, Philippe Mathieu-Daudé, 2025/06/10
- Re: [PULL 00/24] Misc HW patches for 2025-06-10, Stefan Hajnoczi, 2025/06/11