]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: udc: Fix warnings on 64-bit builds
authorMichal Simek <michal.simek@xilinx.com>
Fri, 30 Oct 2015 15:21:30 +0000 (16:21 +0100)
committerMarek Vasut <marex@denx.de>
Tue, 3 Nov 2015 16:29:54 +0000 (17:29 +0100)
commitf6fcebf5c181365a3c9ebc672d88121d54359eed
treed6478ca73acc744264f9edffe46b0412f5a9835f
parent32191755d75a28a88ca980c89c1fa15db4920510
usb: udc: Fix warnings on 64-bit builds

Cast u32 bit value to 64bit before recasting to 64bit pointer to avoid
pointer from integer cast size mismatch warnings.

Warning log:
+../drivers/usb/gadget/udc/udc-core.c: In function
‘usb_gadget_unmap_request’:
+../drivers/usb/gadget/udc/udc-core.c:68:19: warning: cast to pointer
from integer of different size [-Wint-to-pointer-cast]

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/usb/gadget/udc/udc-core.c