virtio-core: mark CommonCfg as packed

This commit is contained in:
Jeremy Soller
2024-02-16 20:52:55 -07:00
parent de2fae8183
commit 2a4e292e1d
+1 -1
View File
@@ -69,7 +69,7 @@ pub enum CfgType {
const_assert_eq!(core::mem::size_of::<CfgType>(), 1);
#[derive(Debug)]
#[repr(C)]
#[repr(C, packed)]
pub struct CommonCfg {
// About the whole device.
/// The driver uses this to select which feature bits device_feature shows.