From 92ea19ae091482484c84d7b09049f7dc74bf6f42 Mon Sep 17 00:00:00 2001 From: Joel Kitching Date: Tue, 5 Nov 2019 18:36:42 +0800 Subject: vboot: align workbuf to VB2_WORKBUF_ALIGN Also standardize on position and spacing of __attribute__. BUG=b:124141368 TEST=make clean && make runtests BRANCH=none Change-Id: Ic61d6193c2413824837a51af98eb2dcd9ea4ab85 Signed-off-by: Joel Kitching Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1902843 Commit-Queue: Joel Kitching Tested-by: Joel Kitching Reviewed-by: Julius Werner --- tests/vboot_api_devmode_tests.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/vboot_api_devmode_tests.c') diff --git a/tests/vboot_api_devmode_tests.c b/tests/vboot_api_devmode_tests.c index 03454890..6cbcedec 100644 --- a/tests/vboot_api_devmode_tests.c +++ b/tests/vboot_api_devmode_tests.c @@ -92,7 +92,8 @@ test_case_t test[] = { }; /* Mock data */ -static uint8_t workbuf[VB2_KERNEL_WORKBUF_RECOMMENDED_SIZE]; +static uint8_t workbuf[VB2_KERNEL_WORKBUF_RECOMMENDED_SIZE] + __attribute__((aligned(VB2_WORKBUF_ALIGN))); static struct vb2_context *ctx; static struct vb2_shared_data *sd; static struct vb2_gbb_header gbb; -- cgit v1.2.1