Commit 48123e0e authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

greybus: add proper packing to all greybus message types

parent 3be03d42
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
#ifndef __GREYBUS_DESC_H #ifndef __GREYBUS_DESC_H
#define __GREYBUS_DESC_H #define __GREYBUS_DESC_H
#pragma pack(push, 1)
struct greybus_descriptor_block_header { struct greybus_descriptor_block_header {
__le16 size; __le16 size;
__u8 version_major; __u8 version_major;
...@@ -92,4 +94,6 @@ struct greybus_descriptor { ...@@ -92,4 +94,6 @@ struct greybus_descriptor {
}; };
}; };
#pragma pack(pop)
#endif /* __GREYBUS_DESC_H */ #endif /* __GREYBUS_DESC_H */
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
#ifndef __SVC_MSG_H #ifndef __SVC_MSG_H
#define __SVC_MSG_H #define __SVC_MSG_H
#pragma pack(push, 1)
enum svc_function_type { enum svc_function_type {
SVC_FUNCTION_HANDSHAKE = 0x00, SVC_FUNCTION_HANDSHAKE = 0x00,
SVC_FUNCTION_UNIPRO_NETWORK_MANAGEMENT = 0x01, SVC_FUNCTION_UNIPRO_NETWORK_MANAGEMENT = 0x01,
...@@ -161,4 +163,6 @@ struct svc_msg { ...@@ -161,4 +163,6 @@ struct svc_msg {
}; };
}; };
#pragma pack(pop)
#endif /* __SVC_MSG_H */ #endif /* __SVC_MSG_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment