On Mon, Oct 7, 2019 at 6:37 AM Heinrich Schuchardt <xypron.g...@gmx.de> wrote: > > 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.g...@gmx.de> > --- > include/cbfs.h | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) >
Reviewed-by: Bin Meng <bmeng...@gmail.com> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot