mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] firmware: dmi: struct dmi_header should be packed
@ 2015-04-29 12:08 Jean Delvare
  0 siblings, 0 replies; only message in thread
From: Jean Delvare @ 2015-04-29 12:08 UTC (permalink / raw)
  To: LKML; +Cc: Ivan.khoronzhuk, Matt Fleming

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-04-29 12:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-29 12:08 [PATCH] firmware: dmi: struct dmi_header should be packed Jean Delvare

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®