From: Christopher N. Hesse Date: Wed, 18 Jul 2018 08:21:57 +0000 (+0200) Subject: a5xelte: Pack tfa struct X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6d494e7917cdc20b1e0fb235da16b08a141aeb47;p=GitHub%2FLineageOS%2Fandroid_device_samsung_a5xelte.git a5xelte: Pack tfa struct Discard any possible padding since all we want to do is have a linear data container. Change-Id: Ieb308874f83990c77adc26cfedf4d72ab78023ac --- diff --git a/amplifier/tfa.h b/amplifier/tfa.h index 13c9518..d9b471e 100644 --- a/amplifier/tfa.h +++ b/amplifier/tfa.h @@ -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.