pci: use C ABI-qualification for a packed structure

Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
Wei Liu
2025-01-09 02:00:22 +00:00
committed by Rob Bradford
parent 778c05d678
commit 2e22b8bc3a
2 changed files with 2 additions and 2 deletions

View File

@@ -456,7 +456,7 @@ impl Snapshottable for MsixConfig {
}
#[allow(dead_code)]
#[repr(packed)]
#[repr(C, packed)]
#[derive(Clone, Copy, Default, Serialize, Deserialize)]
pub struct MsixCap {
// Message Control Register