x86/boot: Remove __packed attribute
PATCH 1/1 x86/boot: Remove __packed attribute
The data are properly aligned in trampoline.S.
Signed-off-by Frediano Ziglio <[email protected]>
--- xen/arch/x86/boot/cmdline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/boot/cmdline.c +1 -1
@@ -38,7 +38,7 @@ asm (#include "video.h" /* Keep in sync with trampoline.S:early_boot_opts label! */ -typedef struct __packed { +typedef struct { uint8_t skip_realmode; uint8_t opt_edd; uint8_t opt_edid;
Signature · 1 line
2.34.1
Quoted 1 line · Frediano Ziglio
The data are properly aligned in
trampoline.S.
I think the attribute was added as a precautionary measure. I don't really mind seeing it dropped, but I wonder if it's getting in the way somewhere, or whether this is solely tidying along the lines of personal taste.
Jan
Quoted 18 lines
Signed-off-by Frediano Ziglio <[email protected]>--- xen/arch/x86/boot/cmdline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)xen/arch/x86/boot/cmdline.c +1
-1@@ -38,7 +38,7 @@ asm (#include "video.h" /* Keep in sync with trampoline.S:early_boot_opts label! */ -typedef struct __packed { +typedef struct { uint8_t skip_realmode; uint8_t opt_edd; uint8_t opt_edid;