tree:
https://github.com/shenki/linux v5.10.50-openpower1
head: 24b277f206d6e8e9f86adaca0f654d7e7d62c7c7
commit: e986a047f6e95986db0f0c7eb5dfc07773ca91cb [1/3] xhci: Reset controller on xhci
shutdown
config: openrisc-randconfig-p002-20210715 (attached as .config)
compiler: or1k-linux-gcc (GCC) 10.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://github.com/shenki/linux/commit/e986a047f6e95986db0f0c7eb5dfc07773...
git remote add shenki
https://github.com/shenki/linux
git fetch --no-tags shenki v5.10.50-openpower1
git checkout e986a047f6e95986db0f0c7eb5dfc07773ca91cb
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=openrisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/usb/host/xhci.c: In function 'xhci_shutdown':
> drivers/usb/host/xhci.c:798:2: error: implicit declaration of
function 'pci_reset_function_locked' [-Werror=implicit-function-declaration]
798 | pci_reset_function_locked(to_pci_dev(hcd->self.sysdev));
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/pci_reset_function_locked +798 drivers/usb/host/xhci.c
767
768 /*
769 * Shutdown HC (not bus-specific)
770 *
771 * This is called when the machine is rebooting or halting. We assume that the
772 * machine will be powered off, and the HC's internal state will be reset.
773 * Don't bother to free memory.
774 *
775 * This will only ever be called with the main usb_hcd (the USB3 roothub).
776 */
777 void xhci_shutdown(struct usb_hcd *hcd)
778 {
779 struct xhci_hcd *xhci = hcd_to_xhci(hcd);
780
781 if (xhci->quirks & XHCI_SPURIOUS_REBOOT)
782 usb_disable_xhci_ports(to_pci_dev(hcd->self.sysdev));
783
784 spin_lock_irq(&xhci->lock);
785 xhci_halt(xhci);
786 /* Workaround for spurious wakeups at shutdown with HSW */
787 if (xhci->quirks & XHCI_SPURIOUS_WAKEUP)
788 xhci_reset(xhci);
789 spin_unlock_irq(&xhci->lock);
790
791 xhci_cleanup_msix(xhci);
792
793 xhci_dbg_trace(xhci, trace_xhci_dbg_init,
794 "xhci_shutdown completed - status = %x",
795 readl(&xhci->op_regs->status));
796
797 /* TI XHCI controllers do not come back after kexec without this hack */
798 pci_reset_function_locked(to_pci_dev(hcd->self.sysdev));
799 }
800 EXPORT_SYMBOL_GPL(xhci_shutdown);
801
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org