mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-02 09:25:17 +00:00
HV/DM: Unify the usage of aligned for structure definition with alignment
Now one macro is added to define the alignment requirement. >#define __aligned(x) __attribute__((aligned(x))) Some code uses the __aligned(x) to define the alignment while the other code uses the original alignment definition. So they are unified. Tracked-On: projectacrn/acrn-hypervisor#2131 Signed-off-by: Zhao Yakui <yakui.zhao@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -101,7 +101,7 @@ static cpuset_t cpumask;
|
||||
|
||||
static void vm_loop(struct vmctx *ctx);
|
||||
|
||||
static char vhm_request_page[4096] __attribute__ ((aligned(4096)));
|
||||
static char vhm_request_page[4096] __aligned(4096);
|
||||
|
||||
static struct vhm_request *vhm_req_buf =
|
||||
(struct vhm_request *)&vhm_request_page;
|
||||
|
Reference in New Issue
Block a user