Messages in this thread | | | Date | Thu, 25 Nov 2021 09:04:03 +0800 | From | kernel test robot <> | Subject | [mnyman-xhci:for-usb-next 2/4] drivers/usb/host/xhci-ring.c:1236:6: warning: no previous prototype for 'xhci_handle_stop_endpoint_command_timeout' |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mnyman/xhci.git for-usb-next head: a90f619386a961d42cde656b13e4c22c133cc775 commit: a62595355b40c10d1fcc7056ddcf4c246fc72967 [2/4] xhci: use generic command timer for stop endpoint commands. config: arc-randconfig-r043-20211123 (https://download.01.org/0day-ci/archive/20211125/202111250929.ZL55xEPm-lkp@intel.com/config) compiler: arc-elf-gcc (GCC) 11.2.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/?id=a62595355b40c10d1fcc7056ddcf4c246fc72967 git remote add mnyman-xhci https://git.kernel.org/pub/scm/linux/kernel/git/mnyman/xhci.git git fetch --no-tags mnyman-xhci for-usb-next git checkout a62595355b40c10d1fcc7056ddcf4c246fc72967 # save the config file to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/usb/host/xhci-ring.c:1236:6: warning: no previous prototype for 'xhci_handle_stop_endpoint_command_timeout' [-Wmissing-prototypes] 1236 | void xhci_handle_stop_endpoint_command_timeout(struct xhci_hcd *xhci, struct xhci_command *cmd) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/xhci_handle_stop_endpoint_command_timeout +1236 drivers/usb/host/xhci-ring.c
1235 > 1236 void xhci_handle_stop_endpoint_command_timeout(struct xhci_hcd *xhci, struct xhci_command *cmd) 1237 { 1238 struct xhci_virt_ep *ep; 1239 u32 usbsts; 1240 u32 field3; 1241 char str[XHCI_MSG_MAX]; 1242 1243 field3 = le32_to_cpu(cmd->command_trb->generic.field[3]); 1244 usbsts = readl(&xhci->op_regs->status); 1245 1246 xhci_warn(xhci, "xHCI host not responding to stop endpoint command.\n"); 1247 xhci_warn(xhci, "USBSTS:%s\n", xhci_decode_usbsts(str, usbsts)); 1248 1249 ep = xhci_get_virt_ep(xhci, 1250 TRB_TO_SLOT_ID(field3), 1251 TRB_TO_EP_INDEX(field3)); 1252 if (ep) 1253 ep->ep_state &= ~EP_STOP_CMD_PENDING; 1254 1255 xhci_halt(xhci); 1256 xhci_hc_died(xhci); 1257 1258 xhci_dbg_trace(xhci, trace_xhci_dbg_cancel_urb, "xHCI host controller is dead."); 1259 } 1260
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
| |