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 2f9f98827c0afe14d7ba724827a50460755f1ffe..5055ac34142d0dc59a3b2c477ed45fed814a9943 100644 (file)
@@ -75,7 +75,7 @@ struct dmi_header {
        u8 type;
        u8 length;
        u16 handle;
-};
+} __packed;
 
 struct dmi_device {
        struct list_head list;