From: Paolo Bonzini Date: Fri, 17 Jan 2025 12:29:17 +0000 (+0100) Subject: rust: pl011: fix repr(C) for PL011Class X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5faaac0a4c5593865a33a3080b4fd211feb51d31;p=qemu.git rust: pl011: fix repr(C) for PL011Class Reviewed-by: Zhao Liu Signed-off-by: Paolo Bonzini --- diff --git a/rust/hw/char/pl011/src/device.rs b/rust/hw/char/pl011/src/device.rs index 994c2fc059..65a1234b9f 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: ::Class, /// The byte string that identifies the device.