]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
greybus: add proper packing to all greybus message types
authorGreg Kroah-Hartman <greg@kroah.com>
Tue, 2 Sep 2014 17:51:56 +0000 (10:51 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 2 Sep 2014 17:51:56 +0000 (10:51 -0700)
drivers/staging/greybus/greybus_desc.h
drivers/staging/greybus/svc_msg.h

index 0fd7230f63f931e1a3781471fdad08941516bce1..592b6517d43b036212e3f1045ed3735d4c3f4e66 100644 (file)
@@ -10,6 +10,8 @@
 #ifndef __GREYBUS_DESC_H
 #define __GREYBUS_DESC_H
 
+#pragma pack(push, 1)
+
 struct greybus_descriptor_block_header {
        __le16  size;
        __u8    version_major;
@@ -92,4 +94,6 @@ struct greybus_descriptor {
        };
 };
 
+#pragma pack(pop)
+
 #endif /* __GREYBUS_DESC_H */
index d992f3cebcefb74882bc2fdaf0fcf67a844a4fb5..bbc7ef0b651789e335ea715bca5a162d390ee9c1 100644 (file)
@@ -10,6 +10,8 @@
 #ifndef __SVC_MSG_H
 #define __SVC_MSG_H
 
+#pragma pack(push, 1)
+
 enum svc_function_type {
        SVC_FUNCTION_HANDSHAKE                  = 0x00,
        SVC_FUNCTION_UNIPRO_NETWORK_MANAGEMENT  = 0x01,
@@ -161,4 +163,6 @@ struct svc_msg {
        };
 };
 
+#pragma pack(pop)
+
 #endif /* __SVC_MSG_H */