[U-Boot] [BUG] tbs2910_defconfig does not compile with gcc 9.2.1

Marek Vasut marex at denx.de
Sat Oct 26 18:05:42 UTC 2019


On 10/26/19 8:01 PM, Heinrich Schuchardt wrote:
> Hello Marek,

Hi,

> tbs2910_defconfig does not compile with gcc 9.2.1:
> 
> In file included from drivers/usb/gadget/g_dnl.c:24:
> drivers/usb/gadget/composite.c: In function ‘get_string’:
> drivers/usb/gadget/composite.c:545:23: error: taking address of packed
> member of ‘struct usb_string_descriptor’ may result in an unaligned
> pointer value [-Werror=address-of-packed-member]
>   545 |    collect_langs(sp, s->wData);
>       |                      ~^~~~~~~

Send a patch fixing the issue please.

The board seems to compile within travis, so it's a new problem due to
newer gcc.

-- 
Best regards,
Marek Vasut


More information about the U-Boot mailing list