Skip to contentSkip to conversation

firmware: dmi: struct dmi_header should be packed

PATCH New Jean Delvare 1 participant 1 message Apr 29, 2015 Dmi/smbios support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 firmware: dmi: struct dmi_header should be packed

Apparently the compiler does fine without it, but it feels safer and clearer to add the missing attribute.

---
 include/linux/dmi.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/dmi.h +1 -1
@@ -75,7 +75,7 @@ struct dmi_header {
 	u8 type;
 	u8 length;
 	u16 handle;
-};
+} __packed;
 
 struct dmi_device {
 	struct list_head list;
Signature · 2 lines
Jean Delvare
SUSE L3 Support