diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2025-01-17 13:29:17 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-01-22 11:03:08 +0100 |
commit | 5faaac0a4c5593865a33a3080b4fd211feb51d31 (patch) | |
tree | 12c86af3ec9792b144efcde7fbba58bb1757d2e8 /rust/hw | |
parent | d6430c17d7113d3c38480dc34e59d00b0504e2f7 (diff) | |
download | qemu-5faaac0a4c5593865a33a3080b4fd211feb51d31.zip qemu-5faaac0a4c5593865a33a3080b4fd211feb51d31.tar.gz qemu-5faaac0a4c5593865a33a3080b4fd211feb51d31.tar.bz2 |
rust: pl011: fix repr(C) for PL011Class
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/hw')
-rw-r--r-- | rust/hw/char/pl011/src/device.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/hw/char/pl011/src/device.rs b/rust/hw/char/pl011/src/device.rs index 994c2fc..65a1234 100644 --- a/rust/hw/char/pl011/src/device.rs +++ b/rust/hw/char/pl011/src/device.rs @@ -123,6 +123,7 @@ pub struct PL011State { qom_isa!(PL011State : SysBusDevice, DeviceState, Object); +#[repr(C)] pub struct PL011Class { parent_class: <SysBusDevice as ObjectType>::Class, /// The byte string that identifies the device. |