mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 01:07:57 +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:
@@ -55,7 +55,7 @@ struct per_cpu_region {
|
||||
#endif
|
||||
} __aligned(PAGE_SIZE); /* per_cpu_region size aligned with PAGE_SIZE */
|
||||
|
||||
extern struct per_cpu_region per_cpu_data[];
|
||||
extern struct per_cpu_region per_cpu_data[CONFIG_MAX_PCPU_NUM];
|
||||
/*
|
||||
* get percpu data for pcpu_id.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user