mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-08 20:29:40 +00:00
hv: coding style: use the defined data type __packed
1) Use __attribute__((packed)) instead of #pragma pack(1) 2) Use the defined data type __packed instead of __attribute__((packed)) Tracked-On: #861 Signed-off-by: Li, Fei1 <fei1.li@intel.com>
This commit is contained in:
@@ -394,7 +394,7 @@ struct acrn_descriptor_ptr {
|
||||
uint16_t limit;
|
||||
uint64_t base;
|
||||
uint16_t reserved[3]; /* align struct size to 64bit */
|
||||
} __attribute__((packed));
|
||||
} __packed;
|
||||
|
||||
/**
|
||||
* @brief registers info for vcpu.
|
||||
|
Reference in New Issue
Block a user