[xlnx:xlnx_rebase_v5.4 903/1700] drivers/usb/dwc3/host.c:16:6: error: redefinition of 'dwc3_host_wakeup_capable'

kernel test robot lkp at intel.com
Tue Mar 2 16:33:48 GMT 2021


tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head:   49bdb4e70d2001f3a5bf0bf5e990cca4a85210f4
commit: 6d0468b837bc2b3cce625f59904d137e63637b5d [903/1700] usb: dwc3: Add support for clock disabling during suspend
config: x86_64-randconfig-a015-20210302 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 5de09ef02e24d234d9fc0cd1c6dfe18a1bb784b0)
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 x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://github.com/Xilinx/linux-xlnx/commit/6d0468b837bc2b3cce625f59904d137e63637b5d
        git remote add xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xlnx xlnx_rebase_v5.4
        git checkout 6d0468b837bc2b3cce625f59904d137e63637b5d
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

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

   In file included from drivers/usb/dwc3/host.c:12:
>> include/linux/usb/xhci_pdriver.h:22:6: warning: no previous prototype for function 'dwc3_host_wakeup_capable' [-Wmissing-prototypes]
   void dwc3_host_wakeup_capable(struct device *dev, bool wakeup)
        ^
   include/linux/usb/xhci_pdriver.h:22:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dwc3_host_wakeup_capable(struct device *dev, bool wakeup)
   ^
   static 
   In file included from drivers/usb/dwc3/host.c:14:
   drivers/usb/dwc3/core.h:1418:6: warning: no previous prototype for function 'dwc3_simple_wakeup_capable' [-Wmissing-prototypes]
   void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
        ^
   drivers/usb/dwc3/core.h:1418:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
   ^
   static 
>> drivers/usb/dwc3/host.c:16:6: error: redefinition of 'dwc3_host_wakeup_capable'
   void dwc3_host_wakeup_capable(struct device *dev, bool wakeup)
        ^
   include/linux/usb/xhci_pdriver.h:22:6: note: previous definition is here
   void dwc3_host_wakeup_capable(struct device *dev, bool wakeup)
        ^
   2 warnings and 1 error generated.


vim +/dwc3_host_wakeup_capable +16 drivers/usb/dwc3/host.c

    15	
  > 16	void dwc3_host_wakeup_capable(struct device *dev, bool wakeup)
    17	{
    18		dwc3_simple_wakeup_capable(dev, wakeup);
    19	}
    20	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 32845 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210303/03ff4896/attachment-0001.gz>


More information about the linux-arm-kernel mailing list