a5xelte: Pack tfa struct
authorChristopher N. Hesse <raymanfx@gmail.com>
Wed, 18 Jul 2018 08:21:57 +0000 (10:21 +0200)
committerJan Altensen <info@stricted.net>
Mon, 12 Aug 2019 07:12:09 +0000 (09:12 +0200)
Discard any possible padding since all we want to do is have a linear
data container.

Change-Id: Ieb308874f83990c77adc26cfedf4d72ab78023ac

amplifier/tfa.h

index 13c9518b7cb96460137cee1bbedfea7de5a6ce95..d9b471e249ef52ca67a35319b574ed460cd51f24 100644 (file)
@@ -41,7 +41,7 @@ typedef enum {
 typedef struct {
     volatile int a1;
     volatile unsigned char a2[500];
-} tfa_handle_t;
+} __attribute__((packed)) tfa_handle_t;
 
 /*
  * Vendor functions that we dlsym.