usb: composite: fix possible alignment issues 26/220426/2
authorSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Thu, 21 Nov 2019 21:15:22 +0000 (22:15 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 19 Dec 2019 00:48:01 +0000 (09:48 +0900)
commit2f5568a14d54861f9222fa6845ba1b5ad31a8731
treebaf377611989c0958d1f0a7b1592ba6942d977c9
parent436d5c8e3c7f5f0698071492663c230c406ca46d
usb: composite: fix possible alignment issues

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.

Change-Id: I3dd21a85f104b68b0af8af08425133f258758e56
Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/usb/gadget/composite.c