a7xelte: Pack tfa struct
authorChristopher N. Hesse <raymanfx@gmail.com>
Wed, 18 Jul 2018 08:21:57 +0000 (10:21 +0200)
committerSourajit Karmakar <sourajit.karmakar@gmail.com>
Tue, 7 Jul 2020 14:51:29 +0000 (10:51 -0400)
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.