Re: [BUG] common/usb.c: taking address of packed member of ‘struct usb_device_descriptor’ may result in an unaligned pointer value

2019-12-16 Thread Marek Vasut
On 12/16/19 10:44 AM, Heinrich Schuchardt wrote: > Hello Marek, Hi, > with powerpc64-linux-gnu-gcc, version 9.2.1, big endian I see the errors > below. Are you building this with some additional extra flags ? > struct usb_device_descriptor is naturally packed. Why do we need the > packed

[BUG] common/usb.c: taking address of packed member of ‘struct usb_device_descriptor’ may result in an unaligned pointer value

2019-12-16 Thread Heinrich Schuchardt
Hello Marek, with powerpc64-linux-gnu-gcc, version 9.2.1, big endian I see the errors below. struct usb_device_descriptor is naturally packed. Why do we need the packed attribute in include/linux/usb/ch9.h? If it is needed, we should replace le16_to_cpus() by an alignment friendly