[mnyman-xhci:for-usb-next 2/4] drivers/usb/host/xhci-ring.c:1236:6: warning: no previous prototype for function 'xhci_handle_stop_endpoint_command_timeout'

From: kernel test robot
Date: Mon Nov 22 2021 - 02:16:26 EST


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: arm-randconfig-c002-20211121 (attached as .config)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# 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 attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/usb/host/xhci-ring.c:1236:6: warning: no previous prototype for function 'xhci_handle_stop_endpoint_command_timeout' [-Wmissing-prototypes]
void xhci_handle_stop_endpoint_command_timeout(struct xhci_hcd *xhci, struct xhci_command *cmd)
^
drivers/usb/host/xhci-ring.c:1236:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void xhci_handle_stop_endpoint_command_timeout(struct xhci_hcd *xhci, struct xhci_command *cmd)
^
static
1 warning generated.


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@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip