Subject: [xlnx:master 9671/9819] drivers/usb/dwc3/dwc3-of-simple.c:651:2: error: implicit declaration of function 'dwc3_simple_vbus'; did you mean 'dwc3_of_simple_probe'?

From: kbuild test robot <[email-masked]>
Date: Mon, 24 Feb 2020 22:04:10 +0800

tree:   https://github.com/Xilinx/linux-xlnx master
head:   0bf5e5fe96bf3663f5d47e01d7f8d0e4d737e492
commit: 309d88250e99b729b76ff44fc32d86bfd6eb14d2 [9671/9819] nvmem: zynqmp: Added zynqmp nvmem get_silicon_version()
config: microblaze-randconfig-a001-20200224 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 7.5.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 309d88250e99b729b76ff44fc32d86bfd6eb14d2
        # save the attached .config to linux build tree
        GCC_VERSION=7.5.0 make.cross ARCH=microblaze 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <[email-masked]>

All errors (new ones prefixed by >>):

   drivers/usb/dwc3/dwc3-of-simple.c: In function 'dwc3_of_simple_suspend':
>> drivers/usb/dwc3/dwc3-of-simple.c:651:2: error: implicit declaration of function 'dwc3_simple_vbus'; did you mean 'dwc3_of_simple_probe'? [-Werror=implicit-function-declaration]
     dwc3_simple_vbus(simple->dwc, true);
     ^~~~~~~~~~~~~~~~
     dwc3_of_simple_probe
   cc1: some warnings being treated as errors

vim +651 drivers/usb/dwc3/dwc3-of-simple.c

76251db8656194 Enric Balletbo i Serra 2018-07-16  645  
66174b6998a645 Arnd Bergmann          2018-08-13  646  static int __maybe_unused dwc3_of_simple_suspend(struct device *dev)
76251db8656194 Enric Balletbo i Serra 2018-07-16  647  {
76251db8656194 Enric Balletbo i Serra 2018-07-16  648  	struct dwc3_of_simple *simple = dev_get_drvdata(dev);
76251db8656194 Enric Balletbo i Serra 2018-07-16  649  
d428092fcbb475 Piyush Mehta           2020-01-23  650  	/* Ask ULPI to turn OFF Vbus */
d428092fcbb475 Piyush Mehta           2020-01-23 @651  	dwc3_simple_vbus(simple->dwc, true);
d428092fcbb475 Piyush Mehta           2020-01-23  652  
76251db8656194 Enric Balletbo i Serra 2018-07-16  653  	if (simple->need_reset)
76251db8656194 Enric Balletbo i Serra 2018-07-16  654  		reset_control_assert(simple->resets);
76251db8656194 Enric Balletbo i Serra 2018-07-16  655  
76251db8656194 Enric Balletbo i Serra 2018-07-16  656  	return 0;
76251db8656194 Enric Balletbo i Serra 2018-07-16  657  }
76251db8656194 Enric Balletbo i Serra 2018-07-16  658  

:::::: The code at line 651 was first introduced by commit
:::::: d428092fcbb4753e0882f1d07084b6da0623e437 usb: dwc3: Add support for removing vbus when suspended

:::::: TO: Piyush Mehta <[email-masked]>
:::::: CC: Michal Simek <[email-masked]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email-masked]
_______________________________________________
linux-arm-kernel mailing list
[email-masked]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel