From: Amit Pundir Date: Mon, 21 Dec 2015 08:45:58 +0000 (+0530) Subject: usb: gadget: rndis: fix broken data aggregation build X-Git-Tag: firefly_0821_release~2958^2~348 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bbc2ad37fd8757c6347d23d5310b5437b1b25ae9;p=firefly-linux-kernel-4.4.55.git usb: gadget: rndis: fix broken data aggregation build Declare "cdev" to fix broken AOSP commit "RNDIS: Add Data aggregation (multi packet) support", otherwise we run into following build failure: CC drivers/usb/gadget/function/f_rndis.o drivers/usb/gadget/function/f_rndis.c: In function ‘rndis_command_complete’: drivers/usb/gadget/function/f_rndis.c:479:3: error: ‘cdev’ undeclared (first use in this function) drivers/usb/gadget/function/f_rndis.c:479:3: note: each undeclared identifier is reported only once for each function it appears in make[4]: *** [drivers/usb/gadget/function/f_rndis.o] Error 1 Signed-off-by: Amit Pundir --- diff --git a/drivers/usb/gadget/function/f_rndis.c b/drivers/usb/gadget/function/f_rndis.c index 2758522180f3..2bc1197074a8 100644 --- a/drivers/usb/gadget/function/f_rndis.c +++ b/drivers/usb/gadget/function/f_rndis.c @@ -459,6 +459,7 @@ static void rndis_response_complete(struct usb_ep *ep, struct usb_request *req) static void rndis_command_complete(struct usb_ep *ep, struct usb_request *req) { struct f_rndis *rndis = req->context; + struct usb_composite_dev *cdev = rndis->port.func.config->cdev; int status; rndis_init_msg_type *buf;