pci: use C ABI-qualification for a packed structure
Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
parent
778c05d678
commit
2e22b8bc3a
2 changed files with 2 additions and 2 deletions
|
|
@ -1159,7 +1159,7 @@ mod tests {
|
|||
|
||||
use super::*;
|
||||
|
||||
#[repr(packed)]
|
||||
#[repr(C, packed)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
#[allow(dead_code)]
|
||||
struct TestCap {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue