diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-10-07 00:37:45 +0200 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2019-11-02 18:00:51 +0800 |
commit | 895ae8726dea182c8512fc6154bd0f9a6a06657b (patch) | |
tree | 5bc5ee762d6f3543d0470e7e0225f980bf4556bc /tools/binman/README.entries | |
parent | 5d6f05352b69d4858a2a9e9136ac3a734f0222bb (diff) | |
download | u-boot-895ae8726dea182c8512fc6154bd0f9a6a06657b.tar.gz |
cbfs: do not pack struct cbfs_cachenode
With the __packed attribute sandbox_defconfig cannot be compiled with GCC
9.2.1:
fs/cbfs/cbfs.c: In function ‘file_cbfs_fill_cache’:
fs/cbfs/cbfs.c:164:16: error: taking address of packed member of
‘struct cbfs_cachenode’ may result in an unaligned pointer value
[-Werror=address-of-packed-member]
164 | cache_tail = &new_node->next;
| ^~~~~~~~~~~~~~~
struct cbfs_cachenode is only an internal structure. So let's rearrange the
fields such that the structure is naturally packed and remove the __packed
attribute.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/README.entries')
0 files changed, 0 insertions, 0 deletions