Skip to contentSkip to conversation

x86/boot: Remove __packed attribute

PATCH In review Frediano Ziglio 2 participants 2 messages Sep 10, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/boot: Remove __packed attribute

The data are properly aligned in trampoline.S.

---
 xen/arch/x86/boot/cmdline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/boot/cmdline.c +1 -1
index fc9241ede9..aae5a1f04f 100644
@@ -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
#1 lore raw
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
---
 xen/arch/x86/boot/cmdline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/boot/cmdline.c +1 -1
index fc9241ede9..aae5a1f04f 100644
@@ -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;