Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c390b036 authored by Andrew Morton's avatar Andrew Morton Committed by Felipe Balbi
Browse files

usb: dwc3: ep0: fix sparc64 build



drivers/usb/dwc3/ep0.c: In function `__dwc3_ep0_do_control_data':
drivers/usb/dwc3/ep0.c:905: error: `typeof' applied to a bit-field

Looks like a gcc-3.4.5/sparc64 bug.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 4b58ed11
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -892,6 +892,7 @@ static void __dwc3_ep0_do_control_data(struct dwc3 *dwc,
	} else if (!IS_ALIGNED(req->request.length, dep->endpoint.maxpacket)
			&& (dep->number == 0)) {
		u32	transfer_size;
		u32	maxpacket;

		ret = usb_gadget_map_request(&dwc->gadget, &req->request,
				dep->number);
@@ -902,8 +903,8 @@ static void __dwc3_ep0_do_control_data(struct dwc3 *dwc,

		WARN_ON(req->request.length > DWC3_EP0_BOUNCE_SIZE);

		transfer_size = roundup(req->request.length,
				(u32) dep->endpoint.maxpacket);
		maxpacket = dep->endpoint.maxpacket;
		transfer_size = roundup(req->request.length, maxpacket);

		dwc->ep0_bounced = true;