Re: [U-Boot] [PATCH v2 1/2] usb: composite: fix possible alignment issues

2019-11-22 Thread Marek Vasut
On 11/22/19 6:32 PM, Heinrich Schuchardt wrote: > On 11/22/19 1:14 PM, Marek Vasut wrote: >> On 11/22/19 12:58 PM, Heinrich Schuchardt wrote: >>> On 11/22/19 8:47 AM, Simon Goldschmidt wrote: On Fri, Nov 22, 2019 at 7:50 AM Heinrich Schuchardt wrote: > > On 11/22/19 1:25 AM, Mare

Re: [U-Boot] [PATCH v2 1/2] usb: composite: fix possible alignment issues

2019-11-22 Thread Tom Rini
On Fri, Nov 22, 2019 at 06:32:13PM +0100, Heinrich Schuchardt wrote: > On 11/22/19 1:14 PM, Marek Vasut wrote: > > On 11/22/19 12:58 PM, Heinrich Schuchardt wrote: > > > On 11/22/19 8:47 AM, Simon Goldschmidt wrote: > > > > On Fri, Nov 22, 2019 at 7:50 AM Heinrich Schuchardt > > > > wrote: > > > >

Re: [U-Boot] [PATCH v2 1/2] usb: composite: fix possible alignment issues

2019-11-22 Thread Heinrich Schuchardt
On 11/22/19 1:14 PM, Marek Vasut wrote: On 11/22/19 12:58 PM, Heinrich Schuchardt wrote: On 11/22/19 8:47 AM, Simon Goldschmidt wrote: On Fri, Nov 22, 2019 at 7:50 AM Heinrich Schuchardt wrote: On 11/22/19 1:25 AM, Marek Vasut wrote: On 11/21/19 10:15 PM, Simon Goldschmidt wrote: Since upg

Re: [U-Boot] [PATCH v2 1/2] usb: composite: fix possible alignment issues

2019-11-22 Thread Marek Vasut
On 11/22/19 12:58 PM, Heinrich Schuchardt wrote: > On 11/22/19 8:47 AM, Simon Goldschmidt wrote: >> On Fri, Nov 22, 2019 at 7:50 AM Heinrich Schuchardt >> wrote: >>> >>> On 11/22/19 1:25 AM, Marek Vasut wrote: On 11/21/19 10:15 PM, Simon Goldschmidt wrote: > Since upgrading to gcc9, warni

Re: [U-Boot] [PATCH v2 1/2] usb: composite: fix possible alignment issues

2019-11-22 Thread Heinrich Schuchardt
On 11/22/19 8:47 AM, Simon Goldschmidt wrote: On Fri, Nov 22, 2019 at 7:50 AM Heinrich Schuchardt wrote: On 11/22/19 1:25 AM, Marek Vasut wrote: On 11/21/19 10:15 PM, Simon Goldschmidt wrote: Since upgrading to gcc9, warnings are issued: "taking address of packed member of ‘...’ may result i

Re: [U-Boot] [PATCH v2 1/2] usb: composite: fix possible alignment issues

2019-11-21 Thread Simon Goldschmidt
On Fri, Nov 22, 2019 at 7:50 AM Heinrich Schuchardt wrote: > > On 11/22/19 1:25 AM, Marek Vasut wrote: > > On 11/21/19 10:15 PM, Simon Goldschmidt wrote: > >> Since upgrading to gcc9, warnings are issued: > >> "taking address of packed member of ‘...’ may result in an unaligned > >> pointer value"

Re: [U-Boot] [PATCH v2 1/2] usb: composite: fix possible alignment issues

2019-11-21 Thread Heinrich Schuchardt
On 11/22/19 1:25 AM, Marek Vasut wrote: On 11/21/19 10:15 PM, Simon Goldschmidt wrote: Since upgrading to gcc9, warnings are issued: "taking address of packed member of ‘...’ may result in an unaligned pointer value" Fix this by converting two functions to use unaligned access since packed stru

Re: [U-Boot] [PATCH v2 1/2] usb: composite: fix possible alignment issues

2019-11-21 Thread Marek Vasut
On 11/21/19 10:15 PM, Simon Goldschmidt wrote: > Since upgrading to gcc9, warnings are issued: > "taking address of packed member of ‘...’ may result in an unaligned > pointer value" > > Fix this by converting two functions to use unaligned access since packed > structures may be on an unaligned a

Re: [U-Boot] [PATCH v2 1/2] usb: composite: fix possible alignment issues

2019-11-21 Thread Lukasz Majewski
On Thu, 21 Nov 2019 22:15:22 +0100 Simon Goldschmidt wrote: > Since upgrading to gcc9, warnings are issued: > "taking address of packed member of ‘...’ may result in an unaligned > pointer value" > > Fix this by converting two functions to use unaligned access since > packed structures may be on

[U-Boot] [PATCH v2 1/2] usb: composite: fix possible alignment issues

2019-11-21 Thread Simon Goldschmidt
Since upgrading to gcc9, warnings are issued: "taking address of packed member of ‘...’ may result in an unaligned pointer value" Fix this by converting two functions to use unaligned access since packed structures may be on an unaligned address, depending on USB hardware. Signed-off-by: Simon Go