2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 06:34:11 +08:00

greybus: add proper packing to all greybus message types

This commit is contained in:
Greg Kroah-Hartman 2014-09-02 10:51:56 -07:00
parent 3be03d42cd
commit 48123e0e1e
2 changed files with 8 additions and 0 deletions

View 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 */

View 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 */