From cb517683bbc6d5ba56bbc9b6b16fc232607b9a26 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Tue, 16 Jan 2024 13:48:07 +0100 Subject: [PATCH] infra: round up aspects to even sizes and addresses --- kernel/mars.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/mars.h b/kernel/mars.h index a4a8ab49..2ebd454d 100644 --- a/kernel/mars.h +++ b/kernel/mars.h @@ -403,7 +403,8 @@ EXPORT_SYMBOL_GPL(BRITYPE##_brick_nr); \ static const struct generic_aspect_type BRITYPE##_mref_aspect_type = { \ .aspect_type_name = #BRITYPE "_mref_aspect_type", \ .object_type = &mref_type, \ - .aspect_size = sizeof(struct BRITYPE##_mref_aspect), \ + .aspect_size = DIV_ROUND_UP(sizeof(struct BRITYPE##_mref_aspect), \ + sizeof(void *)) * sizeof(void *), \ .init_fn = BRITYPE##_mref_aspect_init_fn, \ .exit_fn = BRITYPE##_mref_aspect_exit_fn, \ }; \