rust: pl011: fix repr(C) for PL011Class
PATCH 1/1 rust: pl011: fix repr(C) for PL011Class
Signed-off-by Paolo Bonzini <[email protected]>
--- rust/hw/char/pl011/src/device.rs | 1 + 1 file changed, 1 insertion(+)
rust/hw/char/pl011/src/device.rs +1 -0
@@ -130,6 +130,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.
Signature · 1 line
2.47.1
Quoted 10 lines · Paolo Bonzini
Date: Tue, 21 Jan 2025 17:15:46 +0100
From: Paolo Bonzini <[email protected]>
Subject: [PATCH] rust: pl011: fix repr(C) for PL011Class
X-Mailer: git-send-email 2.47.1Signed-off-by Paolo Bonzini <[email protected]>--- rust/hw/char/pl011/src/device.rs | 1 + 1 file changed, 1 insertion(+)
Reviewed-by Zhao Liu <[email protected]>