[xlnx:xlnx_rebase_v5.4 908/1683] drivers/usb/dwc3/core.h:1437: multiple definition of `dwc3_set_usb_core_power'; drivers/usb/dwc3/core.o:drivers/usb/dwc3/core.h:1437: first defined here

kernel test robot lkp at intel.com
Sun Nov 1 01:02:56 EST 2020


tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head:   87d2d58e2137748748d96a630fd93eb0e2d81123
commit: 68a922ded3cde24cb75c0cad0c62403d97ca9aaf [908/1683] usb: dwc3: Add code for supporting entering into D3 state during suspend
config: x86_64-randconfig-a001-20201030 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/Xilinx/linux-xlnx/commit/68a922ded3cde24cb75c0cad0c62403d97ca9aaf
        git remote add xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xlnx xlnx_rebase_v5.4
        git checkout 68a922ded3cde24cb75c0cad0c62403d97ca9aaf
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   ld: drivers/usb/dwc3/gadget.o: in function `dwc3_simple_wakeup_capable':
   drivers/usb/dwc3/core.h:1431: multiple definition of `dwc3_simple_wakeup_capable'; drivers/usb/dwc3/core.o:drivers/usb/dwc3/core.h:1431: first defined here
   ld: drivers/usb/dwc3/gadget.o: in function `dwc3_set_simple_data':
   drivers/usb/dwc3/core.h:1433: multiple definition of `dwc3_set_simple_data'; drivers/usb/dwc3/core.o:drivers/usb/dwc3/core.h:1433: first defined here
   ld: drivers/usb/dwc3/gadget.o: in function `dwc3_simple_check_quirks':
   drivers/usb/dwc3/core.h:1435: multiple definition of `dwc3_simple_check_quirks'; drivers/usb/dwc3/core.o:drivers/usb/dwc3/core.h:1435: first defined here
   ld: drivers/usb/dwc3/gadget.o: in function `dwc3_set_usb_core_power':
>> drivers/usb/dwc3/core.h:1437: multiple definition of `dwc3_set_usb_core_power'; drivers/usb/dwc3/core.o:drivers/usb/dwc3/core.h:1437: first defined here
   ld: drivers/usb/dwc3/ep0.o: in function `dwc3_simple_wakeup_capable':
   drivers/usb/dwc3/core.h:1431: multiple definition of `dwc3_simple_wakeup_capable'; drivers/usb/dwc3/core.o:drivers/usb/dwc3/core.h:1431: first defined here
   ld: drivers/usb/dwc3/ep0.o: in function `dwc3_set_simple_data':
   drivers/usb/dwc3/core.h:1433: multiple definition of `dwc3_set_simple_data'; drivers/usb/dwc3/core.o:drivers/usb/dwc3/core.h:1433: first defined here
   ld: drivers/usb/dwc3/ep0.o: in function `dwc3_simple_check_quirks':
   drivers/usb/dwc3/core.h:1435: multiple definition of `dwc3_simple_check_quirks'; drivers/usb/dwc3/core.o:drivers/usb/dwc3/core.h:1435: first defined here
   ld: drivers/usb/dwc3/ep0.o: in function `dwc3_set_usb_core_power':
>> drivers/usb/dwc3/core.h:1437: multiple definition of `dwc3_set_usb_core_power'; drivers/usb/dwc3/core.o:drivers/usb/dwc3/core.h:1437: first defined here
   ld: drivers/usb/dwc3/debugfs.o: in function `dwc3_simple_wakeup_capable':
   drivers/usb/dwc3/core.h:1431: multiple definition of `dwc3_simple_wakeup_capable'; drivers/usb/dwc3/core.o:drivers/usb/dwc3/core.h:1431: first defined here
   ld: drivers/usb/dwc3/debugfs.o: in function `dwc3_set_simple_data':
   drivers/usb/dwc3/core.h:1433: multiple definition of `dwc3_set_simple_data'; drivers/usb/dwc3/core.o:drivers/usb/dwc3/core.h:1433: first defined here
   ld: drivers/usb/dwc3/debugfs.o: in function `dwc3_simple_check_quirks':
   drivers/usb/dwc3/core.h:1435: multiple definition of `dwc3_simple_check_quirks'; drivers/usb/dwc3/core.o:drivers/usb/dwc3/core.h:1435: first defined here
   ld: drivers/usb/dwc3/debugfs.o: in function `dwc3_set_usb_core_power':
>> drivers/usb/dwc3/core.h:1437: multiple definition of `dwc3_set_usb_core_power'; drivers/usb/dwc3/core.o:drivers/usb/dwc3/core.h:1437: first defined here

vim +1437 drivers/usb/dwc3/core.h

  1420	
  1421	#if IS_ENABLED(CONFIG_USB_DWC3_OF_SIMPLE)
  1422	int dwc3_enable_hw_coherency(struct device *dev);
  1423	void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup);
  1424	void dwc3_set_simple_data(struct dwc3 *dwc);
  1425	void dwc3_simple_check_quirks(struct dwc3 *dwc);
  1426	int dwc3_set_usb_core_power(struct dwc3 *dwc, bool on);
  1427	#else
  1428	static inline int dwc3_enable_hw_coherency(struct device *dev)
  1429	{ return 1; }
  1430	void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
  1431	{ ; }
  1432	void dwc3_set_simple_data(struct dwc3 *dwc)
  1433	{ ; }
  1434	void dwc3_simple_check_quirks(struct dwc3 *dwc)
  1435	{ ; }
  1436	int dwc3_set_usb_core_power(struct dwc3 *dwc, bool on)
> 1437	{ ; }
  1438	#endif
  1439	

---
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: 33470 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20201101/cf9390cb/attachment-0001.gz>


More information about the linux-arm-kernel mailing list