lkml.org 
[lkml]   [2015]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 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.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
---
include/linux/dmi.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-4.1-rc1.orig/include/linux/dmi.h 2015-04-28 20:42:00.496086088 +0200
+++ linux-4.1-rc1/include/linux/dmi.h 2015-04-29 13:56:50.761011023 +0200
@@ -75,7 +75,7 @@ struct dmi_header {
u8 type;
u8 length;
u16 handle;
-};
+} __packed;

struct dmi_device {
struct list_head list;

--
Jean Delvare
SUSE L3 Support


\
 
 \ /
  Last update: 2015-04-29 14:41    [W:0.166 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site