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

Marek Vasut marex at denx.de
Fri Nov 22 00:25:52 UTC 2019


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 address, depending on USB hardware.
> 
> Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt at gmail.com>

Applied both, thanks.


More information about the U-Boot mailing list