tree:
https://android.googlesource.com/kernel/goldfish android-3.18
head: e4742bb317218e1c75c86aa765e50cdd06d2c007
commit: 871223edfb881c501de99186b62925b5ed5457d3 [125/187] usb: renesas_usbhs: gadget:
disable all eps when the driver stops
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-5 (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
reproduce (this is a W=1 build):
git remote add android-goldfish
https://android.googlesource.com/kernel/goldfish
git fetch --no-tags android-goldfish android-3.18
git checkout 871223edfb881c501de99186b62925b5ed5457d3
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/usb/renesas_usbhs/mod_gadget.c: In function 'usbhsg_ep_disable':
> drivers/usb/renesas_usbhs/mod_gadget.c:639:6: warning: variable
'ret' set but not used [-Wunused-but-set-variable]
int ret = 0;
^
vim +/ret +639 drivers/usb/renesas_usbhs/mod_gadget.c
633
634 static int usbhsg_ep_disable(struct usb_ep *ep)
635 {
636 struct usbhsg_uep *uep = usbhsg_ep_to_uep(ep);
637 struct usbhs_pipe *pipe;
638 unsigned long flags;
639 int ret = 0;
640
641 spin_lock_irqsave(&uep->lock, flags);
642 pipe = usbhsg_uep_to_pipe(uep);
643 if (!pipe) {
644 ret = -EINVAL;
645 goto out;
646 }
647
648 usbhsg_pipe_disable(uep);
649 usbhs_pipe_free(pipe);
650
651 uep->pipe->mod_private = NULL;
652 uep->pipe = NULL;
653
654 out:
655 spin_unlock_irqrestore(&uep->lock, flags);
656
657 return 0;
658 }
659
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org