tree:
https://git.kernel.org/pub/scm/linux/kernel/git/mnyman/xhci.git fuzzing_cleanup
head: c4ec33c20414ce14307795bfab4eb3b83de76746
commit: d413e9c4421cbbb071f66ab089bd457ffcbfd330 [5/8] xhci: add xhci_get_virt_ep()
helper
config: alpha-randconfig-r021-20201217 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://git.kernel.org/pub/scm/linux/kernel/git/mnyman/xhci.git/commit/?i...
git remote add xhci
https://git.kernel.org/pub/scm/linux/kernel/git/mnyman/xhci.git
git fetch --no-tags xhci fuzzing_cleanup
git checkout d413e9c4421cbbb071f66ab089bd457ffcbfd330
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
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/host/xhci-ring.c:449:22: warning: no previous
prototype for 'xhci_get_virt_ep' [-Wmissing-prototypes]
449 | struct
xhci_virt_ep *xhci_get_virt_ep(struct xhci_hcd *xhci, unsigned int slot_id,
| ^~~~~~~~~~~~~~~~
vim +/xhci_get_virt_ep +449 drivers/usb/host/xhci-ring.c
448
449 struct xhci_virt_ep *xhci_get_virt_ep(struct xhci_hcd *xhci,
unsigned int slot_id,
450 unsigned int ep_index)
451 {
452 if (slot_id == 0 || slot_id >= MAX_HC_SLOTS) {
453 xhci_warn(xhci, "Invalid slot_id %u\n", slot_id);
454 return NULL;
455 }
456 if (ep_index >= EP_CTX_PER_DEV) {
457 xhci_warn(xhci, "Invalid endpoint index %u\n", ep_index);
458 return NULL;
459 }
460 if (!xhci->devs[slot_id]) {
461 xhci_warn(xhci, "No xhci virt device for slot_id %u\n", slot_id);
462 return NULL;
463 }
464
465 return &xhci->devs[slot_id]->eps[ep_index];
466 }
467
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org