lkml.org 
[lkml]   [2020]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectdrivers/usb/gadget/udc/max3420_udc.c:1065:5-6: ERROR: invalid reference to the index variable of the iterator on line 1057
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 30185b69a2d533c4ba6ca926b8390ce7de495e29
commit: 48ba02b2e2b1a1c80718e93fefe99c8319597c4a usb: gadget: add udc driver for max3420
date: 5 months ago
config: i386-randconfig-c003-20200807 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


coccinelle warnings: (new ones prefixed by >>)

>> drivers/usb/gadget/udc/max3420_udc.c:1065:5-6: ERROR: invalid reference to the index variable of the iterator on line 1057

vim +1065 drivers/usb/gadget/udc/max3420_udc.c

1047
1048 static int max3420_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req)
1049 {
1050 struct max3420_req *t, *req = to_max3420_req(_req);
1051 struct max3420_ep *ep = to_max3420_ep(_ep);
1052 unsigned long flags;
1053
1054 spin_lock_irqsave(&ep->lock, flags);
1055
1056 /* Pluck the descriptor from queue */
> 1057 list_for_each_entry(t, &ep->queue, queue)
1058 if (t == req) {
1059 list_del_init(&req->queue);
1060 break;
1061 }
1062
1063 spin_unlock_irqrestore(&ep->lock, flags);
1064
> 1065 if (t == req)
1066 max3420_req_done(req, -ECONNRESET);
1067
1068 return 0;
1069 }
1070

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2020-08-08 02:17    [W:2.111 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site