firmware: dmi: struct dmi_header should be packed
authorJean Delvare <jdelvare@suse.de>
Thu, 25 Jun 2015 07:06:57 +0000 (09:06 +0200)
committerJean Delvare <jdelvare@suse.de>
Thu, 25 Jun 2015 07:06:57 +0000 (09:06 +0200)
Apparently the compiler does fine without it, but it feels safer and
clearer to add the missing attribute.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
include/linux/dmi.h

index 2f9f988..5055ac3 100644 (file)
@@ -75,7 +75,7 @@ struct dmi_header {
        u8 type;
        u8 length;
        u16 handle;
-};
+} __packed;
 
 struct dmi_device {
        struct list_head list;