[balbi-usb:next 26/45] drivers/usb/dwc3/gadget.c:757:3: error: expected ')' before 'dep'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git next
head:   761aa987a847e0e8b9a8d806f1be82217b88b0d3
commit: ff96650d99902fd63d4511e6d9047e34e6aa37f2 [26/45] usb: dwc3: get rid of DWC3_TRB_MASK
config: i386-randconfig-r0-201616 (attached as .config)
reproduce:
        git checkout ff96650d99902fd63d4511e6d9047e34e6aa37f2
        # save the attached .config to linux build tree
        make ARCH=i386 

Note: the balbi-usb/next HEAD 761aa987a847e0e8b9a8d806f1be82217b88b0d3 builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

   drivers/usb/dwc3/gadget.c: In function 'dwc3_prepare_one_trb':
>> drivers/usb/dwc3/gadget.c:757:3: error: expected ')' before 'dep'
      dep->trb_enqueue++;
      ^
>> drivers/usb/dwc3/gadget.c:808:1: error: expected expression before '}' token
    }
    ^

vim +757 drivers/usb/dwc3/gadget.c

eeb720fb21 Felipe Balbi   2011-11-28  751  	}
c71fc37c19 Felipe Balbi   2011-11-22  752  
53fd88189e Felipe Balbi   2016-04-04  753  	dep->trb_enqueue++;
5cd8c48d95 Zhuang Jin Can 2014-05-16  754  	/* Skip the LINK-TRB on ISOC */
ff96650d99 Felipe Balbi   2016-04-05  755  	if ((((dep->trb_enqueue % DWC3_TRB_NUM) == DWC3_TRB_NUM - 1) &&
5cd8c48d95 Zhuang Jin Can 2014-05-16  756  			usb_endpoint_xfer_isoc(dep->endpoint.desc))
53fd88189e Felipe Balbi   2016-04-04 @757  		dep->trb_enqueue++;
e5ba5ec833 Pratyush Anand 2013-01-14  758  
f6bafc6a1c Felipe Balbi   2012-02-06  759  	trb->size = DWC3_TRB_SIZE_LENGTH(length);
f6bafc6a1c Felipe Balbi   2012-02-06  760  	trb->bpl = lower_32_bits(dma);
f6bafc6a1c Felipe Balbi   2012-02-06  761  	trb->bph = upper_32_bits(dma);
c71fc37c19 Felipe Balbi   2011-11-22  762  
16e78db720 Ido Shayevitz  2012-03-12  763  	switch (usb_endpoint_type(dep->endpoint.desc)) {
c71fc37c19 Felipe Balbi   2011-11-22  764  	case USB_ENDPOINT_XFER_CONTROL:
f6bafc6a1c Felipe Balbi   2012-02-06  765  		trb->ctrl = DWC3_TRBCTL_CONTROL_SETUP;
c71fc37c19 Felipe Balbi   2011-11-22  766  		break;
c71fc37c19 Felipe Balbi   2011-11-22  767  
c71fc37c19 Felipe Balbi   2011-11-22  768  	case USB_ENDPOINT_XFER_ISOC:
e5ba5ec833 Pratyush Anand 2013-01-14  769  		if (!node)
f6bafc6a1c Felipe Balbi   2012-02-06  770  			trb->ctrl = DWC3_TRBCTL_ISOCHRONOUS_FIRST;
e5ba5ec833 Pratyush Anand 2013-01-14  771  		else
e5ba5ec833 Pratyush Anand 2013-01-14  772  			trb->ctrl = DWC3_TRBCTL_ISOCHRONOUS;
ca4d44ea2a Felipe Balbi   2016-03-10  773  
ca4d44ea2a Felipe Balbi   2016-03-10  774  		/* always enable Interrupt on Missed ISOC */
ca4d44ea2a Felipe Balbi   2016-03-10  775  		trb->ctrl |= DWC3_TRB_CTRL_ISP_IMI;
c71fc37c19 Felipe Balbi   2011-11-22  776  		break;
c71fc37c19 Felipe Balbi   2011-11-22  777  
c71fc37c19 Felipe Balbi   2011-11-22  778  	case USB_ENDPOINT_XFER_BULK:
c71fc37c19 Felipe Balbi   2011-11-22  779  	case USB_ENDPOINT_XFER_INT:
f6bafc6a1c Felipe Balbi   2012-02-06  780  		trb->ctrl = DWC3_TRBCTL_NORMAL;
c71fc37c19 Felipe Balbi   2011-11-22  781  		break;
c71fc37c19 Felipe Balbi   2011-11-22  782  	default:
c71fc37c19 Felipe Balbi   2011-11-22  783  		/*
c71fc37c19 Felipe Balbi   2011-11-22  784  		 * This is only possible with faulty memory because we
c71fc37c19 Felipe Balbi   2011-11-22  785  		 * checked it already :)
c71fc37c19 Felipe Balbi   2011-11-22  786  		 */
c71fc37c19 Felipe Balbi   2011-11-22  787  		BUG();
c71fc37c19 Felipe Balbi   2011-11-22  788  	}
c71fc37c19 Felipe Balbi   2011-11-22  789  
ca4d44ea2a Felipe Balbi   2016-03-10  790  	/* always enable Continue on Short Packet */
f6bafc6a1c Felipe Balbi   2012-02-06  791  	trb->ctrl |= DWC3_TRB_CTRL_CSP;
ca4d44ea2a Felipe Balbi   2016-03-10  792  
ca4d44ea2a Felipe Balbi   2016-03-10  793  	if (!req->request.no_interrupt)
ca4d44ea2a Felipe Balbi   2016-03-10  794  		trb->ctrl |= DWC3_TRB_CTRL_IOC | DWC3_TRB_CTRL_ISP_IMI;
ca4d44ea2a Felipe Balbi   2016-03-10  795  
ca4d44ea2a Felipe Balbi   2016-03-10  796  	if (last)
f6bafc6a1c Felipe Balbi   2012-02-06  797  		trb->ctrl |= DWC3_TRB_CTRL_LST;
f6bafc6a1c Felipe Balbi   2012-02-06  798  
e5ba5ec833 Pratyush Anand 2013-01-14  799  	if (chain)
e5ba5ec833 Pratyush Anand 2013-01-14  800  		trb->ctrl |= DWC3_TRB_CTRL_CHN;
e5ba5ec833 Pratyush Anand 2013-01-14  801  
16e78db720 Ido Shayevitz  2012-03-12  802  	if (usb_endpoint_xfer_bulk(dep->endpoint.desc) && dep->stream_capable)
f6bafc6a1c Felipe Balbi   2012-02-06  803  		trb->ctrl |= DWC3_TRB_CTRL_SID_SOFN(req->request.stream_id);
c71fc37c19 Felipe Balbi   2011-11-22  804  
f6bafc6a1c Felipe Balbi   2012-02-06  805  	trb->ctrl |= DWC3_TRB_CTRL_HWO;
2c4cbe6e5a Felipe Balbi   2014-04-30  806  
2c4cbe6e5a Felipe Balbi   2014-04-30  807  	trace_dwc3_prepare_trb(dep, trb);
c71fc37c19 Felipe Balbi   2011-11-22 @808  }
c71fc37c19 Felipe Balbi   2011-11-22  809  
72246da40f Felipe Balbi   2011-08-19  810  /*
72246da40f Felipe Balbi   2011-08-19  811   * dwc3_prepare_trbs - setup TRBs from requests

:::::: The code at line 757 was first introduced by commit
:::::: 53fd88189e08c91cb9b43e2d51b4eb314a3d00d7 usb: dwc3: gadget: rename busy/free_slot to trb_enqueue/dequeue

:::::: TO: Felipe Balbi <felipe.balbi@xxxxxxxxxxxxxxx>
:::::: CC: Felipe Balbi <felipe.balbi@xxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux