tree: https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git testing/next head: d2382d0a64910749af50c8c3d46b96a64c85a9c5 commit: 3e37d7b8ce45e9503d9a189a087b7431a963344d [29/34] usb: dwc3: gadget: avoid while (1) loop on completion config: xtensa-allmodconfig (attached as .config) compiler: xtensa-linux-gcc (GCC) 4.9.0 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 3e37d7b8ce45e9503d9a189a087b7431a963344d # save the attached .config to linux build tree make.cross ARCH=xtensa All error/warnings (new ones prefixed by >>): In file included from include/linux/preempt.h:10:0, from include/linux/spinlock.h:50, from include/linux/mmzone.h:7, from include/linux/gfp.h:5, from include/linux/slab.h:14, from drivers/usb/dwc3/gadget.c:21: drivers/usb/dwc3/gadget.c: In function 'dwc3_cleanup_done_reqs': >> include/linux/list.h:522:5: error: expected expression before '=' token n = list_next_entry(pos, member); \ ^ >> drivers/usb/dwc3/gadget.c:1934:2: note: in expansion of macro 'list_for_each_entry_safe' list_for_each_entry_safe(req, , &dep->started_list, list) { ^ In file included from drivers/usb/dwc3/gadget.c:19:0: >> include/linux/kernel.h:832:20: error: '__mptr' undeclared (first use in this function) (type *)( (char *)__mptr - offsetof(type,member) );}) ^ include/linux/list.h:352:2: note: in expansion of macro 'container_of' container_of(ptr, type, member) ^ include/linux/list.h:393:2: note: in expansion of macro 'list_entry' list_entry((pos)->member.next, typeof(*(pos)), member) ^ include/linux/list.h:522:7: note: in expansion of macro 'list_next_entry' n = list_next_entry(pos, member); \ ^ >> drivers/usb/dwc3/gadget.c:1934:2: note: in expansion of macro 'list_for_each_entry_safe' list_for_each_entry_safe(req, , &dep->started_list, list) { ^ include/linux/kernel.h:832:20: note: each undeclared identifier is reported only once for each function it appears in (type *)( (char *)__mptr - offsetof(type,member) );}) ^ include/linux/list.h:352:2: note: in expansion of macro 'container_of' container_of(ptr, type, member) ^ include/linux/list.h:393:2: note: in expansion of macro 'list_entry' list_entry((pos)->member.next, typeof(*(pos)), member) ^ include/linux/list.h:522:7: note: in expansion of macro 'list_next_entry' n = list_next_entry(pos, member); \ ^ >> drivers/usb/dwc3/gadget.c:1934:2: note: in expansion of macro 'list_for_each_entry_safe' list_for_each_entry_safe(req, , &dep->started_list, list) { ^ In file included from include/linux/preempt.h:10:0, from include/linux/spinlock.h:50, from include/linux/mmzone.h:7, from include/linux/gfp.h:5, from include/linux/slab.h:14, from drivers/usb/dwc3/gadget.c:21: include/linux/list.h:524:14: error: expected expression before ',' token pos = n, n = list_next_entry(n, member)) ^ >> drivers/usb/dwc3/gadget.c:1934:2: note: in expansion of macro 'list_for_each_entry_safe' list_for_each_entry_safe(req, , &dep->started_list, list) { ^ In file included from drivers/usb/dwc3/gadget.c:19:0: >> include/linux/list.h:393:45: error: expected expression before ')' token list_entry((pos)->member.next, typeof(*(pos)), member) ^ include/linux/kernel.h:832:3: note: in definition of macro 'container_of' (type *)( (char *)__mptr - offsetof(type,member) );}) ^ include/linux/list.h:393:2: note: in expansion of macro 'list_entry' list_entry((pos)->member.next, typeof(*(pos)), member) ^ include/linux/list.h:524:20: note: in expansion of macro 'list_next_entry' pos = n, n = list_next_entry(n, member)) ^ >> drivers/usb/dwc3/gadget.c:1934:2: note: in expansion of macro 'list_for_each_entry_safe' list_for_each_entry_safe(req, , &dep->started_list, list) { ^ In file included from include/linux/preempt.h:10:0, from include/linux/spinlock.h:50, from include/linux/mmzone.h:7, from include/linux/gfp.h:5, from include/linux/slab.h:14, from drivers/usb/dwc3/gadget.c:21: include/linux/list.h:524:14: warning: left-hand operand of comma expression has no effect [-Wunused-value] pos = n, n = list_next_entry(n, member)) ^ >> drivers/usb/dwc3/gadget.c:1934:2: note: in expansion of macro 'list_for_each_entry_safe' list_for_each_entry_safe(req, , &dep->started_list, list) { ^ >> drivers/usb/dwc3/gadget.c:1929:29: warning: unused variable 'n' [-Wunused-variable] struct dwc3_request *req, *n; ^ vim +/list_for_each_entry_safe +1934 drivers/usb/dwc3/gadget.c 1923 return 0; 1924 } 1925 1926 static int dwc3_cleanup_done_reqs(struct dwc3 *dwc, struct dwc3_ep *dep, 1927 const struct dwc3_event_depevt *event, int status) 1928 { > 1929 struct dwc3_request *req, *n; 1930 struct dwc3_trb *trb; 1931 int count = 0; 1932 int ret; 1933 > 1934 list_for_each_entry_safe(req, , &dep->started_list, list) { 1935 1936 int chain; 1937 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data