From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [xhci:fuzzing_cleanup 7/8] drivers/usb/host/xhci-ring.c:468:19: warning: no previous prototype for 'xhci_virt_ep_to_ring'
Date: Sun, 20 Dec 2020 01:42:57 +0800 [thread overview]
Message-ID: <202012200149.5dOsNTUP-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2532 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mnyman/xhci.git fuzzing_cleanup
head: c4ec33c20414ce14307795bfab4eb3b83de76746
commit: 3cd55408d74d9c3a8547a52d2332f238cf8a2692 [7/8] xhci: add xhci_virt_ep_to_ring() 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/?id=3cd55408d74d9c3a8547a52d2332f238cf8a2692
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 3cd55408d74d9c3a8547a52d2332f238cf8a2692
# 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@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,
| ^~~~~~~~~~~~~~~~
>> drivers/usb/host/xhci-ring.c:468:19: warning: no previous prototype for 'xhci_virt_ep_to_ring' [-Wmissing-prototypes]
468 | struct xhci_ring *xhci_virt_ep_to_ring(struct xhci_hcd *xhci,
| ^~~~~~~~~~~~~~~~~~~~
vim +/xhci_virt_ep_to_ring +468 drivers/usb/host/xhci-ring.c
467
> 468 struct xhci_ring *xhci_virt_ep_to_ring(struct xhci_hcd *xhci,
469 struct xhci_virt_ep *ep,
470 unsigned int stream_id)
471 {
472 /* common case, no streams */
473 if (!(ep->ep_state & EP_HAS_STREAMS))
474 return ep->ring;
475
476 if (!ep->stream_info)
477 return NULL;
478
479 if (stream_id == 0 || stream_id >= ep->stream_info->num_streams) {
480 xhci_warn(xhci, "Invalid stream %u request for slot %u ep %u\n",
481 ep->vdev->slot_id, ep->ep_index, stream_id);
482 return NULL;
483 }
484
485 return ep->stream_info->stream_rings[stream_id];
486 }
487
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 30997 bytes --]
reply other threads:[~2020-12-19 17:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202012200149.5dOsNTUP-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.