From: Greg Kroah-Hartman Date: Tue, 2 Sep 2014 17:51:56 +0000 (-0700) Subject: greybus: add proper packing to all greybus message types X-Git-Tag: v4.14-rc1~2366^2~378^2~21^2~2145 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=48123e0e1eb917c577fb48ef25f41823a7b080f9;p=platform%2Fkernel%2Flinux-rpi.git greybus: add proper packing to all greybus message types --- diff --git a/drivers/staging/greybus/greybus_desc.h b/drivers/staging/greybus/greybus_desc.h index 0fd7230..592b651 100644 --- a/drivers/staging/greybus/greybus_desc.h +++ b/drivers/staging/greybus/greybus_desc.h @@ -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 */ diff --git a/drivers/staging/greybus/svc_msg.h b/drivers/staging/greybus/svc_msg.h index d992f3c..bbc7ef0 100644 --- a/drivers/staging/greybus/svc_msg.h +++ b/drivers/staging/greybus/svc_msg.h @@ -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 */