Re: [PATCH v3 4/4] usb: host: add xhci-exynos driver

From: kernel test robot
Date: Mon Mar 21 2022 - 12:38:18 EST


Hi Daehwan,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on next-20220318]
[also build test ERROR on v5.17]
[cannot apply to usb/usb-testing krzk/for-next char-misc/char-misc-testing v5.17 v5.17-rc8 v5.17-rc7]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url: https://github.com/0day-ci/linux/commits/Daehwan-Jung/usb-host-export-symbols-for-xhci-hooks-usage/20220321-180046
base: 6d72dda014a4753974eb08950089ddf71fec4f60
config: ia64-allmodconfig (https://download.01.org/0day-ci/archive/20220322/202203220027.WbsbZkyk-lkp@xxxxxxxxx/config)
compiler: ia64-linux-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://github.com/0day-ci/linux/commit/517a7258fc6a2861b66ae9893b39d8bd4d6739e7
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Daehwan-Jung/usb-host-export-symbols-for-xhci-hooks-usage/20220321-180046
git checkout 517a7258fc6a2861b66ae9893b39d8bd4d6739e7
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/usb/host/

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

All error/warnings (new ones prefixed by >>):

drivers/usb/host/xhci-exynos.c: In function 'xhci_priv_exynos_setup':
>> drivers/usb/host/xhci-exynos.c:55:18: error: 'struct xhci_plat_priv' has no member named 'plat_setup'
55 | if (!priv->plat_setup)
| ^~
drivers/usb/host/xhci-exynos.c:58:20: error: 'struct xhci_plat_priv' has no member named 'plat_setup'
58 | return priv->plat_setup(hcd);
| ^~
drivers/usb/host/xhci-exynos.c: In function 'xhci_exynos_address_device':
>> drivers/usb/host/xhci-exynos.c:260:26: warning: variable 'xhci' set but not used [-Wunused-but-set-variable]
260 | struct xhci_hcd *xhci;
| ^~~~
drivers/usb/host/xhci-exynos.c: In function 'xhci_exynos_parse_endpoint':
>> drivers/usb/host/xhci-exynos.c:276:29: warning: variable 'ep_ctx' set but not used [-Wunused-but-set-variable]
276 | struct xhci_ep_ctx *ep_ctx;
| ^~~~~~
drivers/usb/host/xhci-exynos.c: In function 'xhci_exynos_set_hc_event_deq_audio':
>> drivers/usb/host/xhci-exynos.c:370:20: warning: variable 'deq' set but not used [-Wunused-but-set-variable]
370 | dma_addr_t deq;
| ^~~
drivers/usb/host/xhci-exynos.c: At top level:
>> drivers/usb/host/xhci-exynos.c:576:10: error: 'const struct xhci_plat_priv' has no member named 'plat_setup'
576 | .plat_setup = xhci_mvebu_a3700_plat_setup,
| ^~~~~~~~~~
>> drivers/usb/host/xhci-exynos.c:576:23: error: 'xhci_mvebu_a3700_plat_setup' undeclared here (not in a function); did you mean 'xhci_mvebu_a3700_init_quirk'?
576 | .plat_setup = xhci_mvebu_a3700_plat_setup,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| xhci_mvebu_a3700_init_quirk
drivers/usb/host/xhci-exynos.c: In function 'xhci_priv_exynos_setup':
drivers/usb/host/xhci-exynos.c:59:1: error: control reaches end of non-void function [-Werror=return-type]
59 | }
| ^
At top level:
drivers/usb/host/xhci-exynos.c:588:36: warning: 'xhci_plat_brcm' defined but not used [-Wunused-const-variable=]
588 | static const struct xhci_plat_priv xhci_plat_brcm = {
| ^~~~~~~~~~~~~~
drivers/usb/host/xhci-exynos.c:584:36: warning: 'xhci_plat_renesas_rcar_gen3' defined but not used [-Wunused-const-variable=]
584 | static const struct xhci_plat_priv xhci_plat_renesas_rcar_gen3 = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/host/xhci-exynos.c:580:36: warning: 'xhci_plat_renesas_rcar_gen2' defined but not used [-Wunused-const-variable=]
580 | static const struct xhci_plat_priv xhci_plat_renesas_rcar_gen2 = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/host/xhci-exynos.c:575:36: warning: 'xhci_plat_marvell_armada3700' defined but not used [-Wunused-const-variable=]
575 | static const struct xhci_plat_priv xhci_plat_marvell_armada3700 = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/host/xhci-exynos.c:571:36: warning: 'xhci_plat_marvell_armada' defined but not used [-Wunused-const-variable=]
571 | static const struct xhci_plat_priv xhci_plat_marvell_armada = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors


vim +55 drivers/usb/host/xhci-exynos.c

50
51 static int xhci_priv_exynos_setup(struct usb_hcd *hcd)
52 {
53 struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd);
54
> 55 if (!priv->plat_setup)
56 return 0;
57
58 return priv->plat_setup(hcd);
59 }
60

--
0-DAY CI Kernel Test Service
https://01.org/lkp