diff options
author | Franklin Wei <git@fwei.tk> | 2017-10-29 12:44:20 -0400 |
---|---|---|
committer | Franklin Wei <git@fwei.tk> | 2017-10-29 12:49:39 -0400 |
commit | 8a6d7cefc9bf45b979ff064d87141949e9b81ca4 (patch) | |
tree | 5247ed97ae8fa9b78eb51afe5e6fe13410ec227a /lib/tlsf/src/tlsf.c | |
parent | 47ebf623cbfa46bd37456cce28a192471b46ddd5 (diff) | |
download | rockbox-8a6d7cefc9bf45b979ff064d87141949e9b81ca4.tar.gz rockbox-8a6d7cefc9bf45b979ff064d87141949e9b81ca4.zip |
tlsf: pack info structs
This should make it build cleanly under -Wcast-align, which should
hopefully avoid any alignment issues on ARM.
Change-Id: Ie147323d2d8cb980dcbb94710387b7ee80826c4d
Diffstat (limited to 'lib/tlsf/src/tlsf.c')
-rw-r--r-- | lib/tlsf/src/tlsf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tlsf/src/tlsf.c b/lib/tlsf/src/tlsf.c index 136c4152c0..d9d5a7b921 100644 --- a/lib/tlsf/src/tlsf.c +++ b/lib/tlsf/src/tlsf.c | |||
@@ -194,7 +194,7 @@ typedef struct bhdr_struct { | |||
194 | struct free_ptr_struct free_ptr; | 194 | struct free_ptr_struct free_ptr; |
195 | u8_t buffer[1]; /*sizeof(struct free_ptr_struct)]; */ | 195 | u8_t buffer[1]; /*sizeof(struct free_ptr_struct)]; */ |
196 | } ptr; | 196 | } ptr; |
197 | } bhdr_t; | 197 | } __attribute__((packed)) bhdr_t; |
198 | 198 | ||
199 | /* This structure is embedded at the beginning of each area, giving us | 199 | /* This structure is embedded at the beginning of each area, giving us |
200 | * enough information to cope with a set of areas */ | 200 | * enough information to cope with a set of areas */ |
@@ -202,7 +202,7 @@ typedef struct bhdr_struct { | |||
202 | typedef struct area_info_struct { | 202 | typedef struct area_info_struct { |
203 | bhdr_t *end; | 203 | bhdr_t *end; |
204 | struct area_info_struct *next; | 204 | struct area_info_struct *next; |
205 | } area_info_t; | 205 | } __attribute__((packed)) area_info_t; |
206 | 206 | ||
207 | typedef struct TLSF_struct { | 207 | typedef struct TLSF_struct { |
208 | /* the TLSF's structure signature */ | 208 | /* the TLSF's structure signature */ |