diff mbox

[1/2] gbsim: Add __packed attribute macro

Message ID 1428620686-9326-1-git-send-email-john.stultz@linaro.org
State New
Headers show

Commit Message

John Stultz April 9, 2015, 11:04 p.m. UTC
Add __packed attribute macro which allows us
to use kernel structures that use it instead of
__attribute__(__packed__).

Cc: Alex Elder <alex.elder@linaro.org>
Cc: Greg Kroah-Hartman <gregkh@google.com>
CC: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
---
 gbsim.h | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/gbsim.h b/gbsim.h
index f4dcc84..91e5e0b 100644
--- a/gbsim.h
+++ b/gbsim.h
@@ -13,6 +13,7 @@ 
 #include <usbg/usbg.h>
 
 #include <svc_msg.h>
+#define __packed  __attribute__((__packed__))
 
 #include "i2s.h"