[U-Boot] [BUG] usb: drivers/usb/gadget/composite.c fails to build

Simon Goldschmidt simon.k.r.goldschmidt at gmail.com
Thu Nov 21 08:59:53 UTC 2019


On Thu, Nov 21, 2019 at 9:28 AM Marek Vasut <marex at denx.de> wrote:
>
> On 11/21/19 8:00 AM, Heinrich Schuchardt wrote:
> > Hello Marek,
>
> Hi,
>
> > I tried to reproduce the problem with tbs2910_defconfig but
> > unfortunately the USB sub-system does not build at all with GCC 9.2.1.
>
> I think you enabled -Werror somewhere, which is not the default.
>
> > The comments in include/linux/usb/ch9.h say that the __packed attribute
> > is needed.
> >
> > The problem could be solved by replacing cpu_to_le16() by a function
> > working on byte buffers. What are your thoughts?
>
> Please send a patch and CC Lukasz, he's the gadget maintainer.

I've already sent a patch for this (and a similar error in dwc2):

https://patchwork.ozlabs.org/project/uboot/list/?series=142441

Regards,
Simon


More information about the U-Boot mailing list