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

greybus: add proper packing to all greybus message types

parent 3be03d42
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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 */
+4 −0
Original line number Diff line number Diff line
@@ -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 */