From 48123e0e1eb917c577fb48ef25f41823a7b080f9 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Tue, 2 Sep 2014 10:51:56 -0700 Subject: [PATCH] greybus: add proper packing to all greybus message types --- drivers/staging/greybus/greybus_desc.h | 4 ++++ drivers/staging/greybus/svc_msg.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/drivers/staging/greybus/greybus_desc.h b/drivers/staging/greybus/greybus_desc.h index 0fd7230f63f9..592b6517d43b 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 d992f3cebcef..bbc7ef0b6517 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 */ -- 2.39.5