# \[xlnx:xlnx\_rebase\_v5.4 904/1683\] drivers/usb/dwc3/core.h:1422: multiple definition of \`dwc3\_set\_simple\_data'; drivers/usb/dwc3/core.o:drivers/usb/dwc3/core.h:1422: first defined here

- From: kernel test robot \<hidden\>
- Date: 2020-10-31 08:39:01 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2020/10/8800844
- Thread: https://ratatoskr.run/linux-arm-kernel/2020/10/8800844/t.md

```text
Hi Michal,

FYI, the error/warning still remains.

tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head:   87d2d58e2137748748d96a630fd93eb0e2d81123
commit: 3d600fd776cbda29abdea084f7437f7d9102b2a5 [904/1683] usb: dwc3: Add support for removing vbus when suspended
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/3d600fd776cbda29abdea084f7437f7d9102b2a5
        git remote add xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xlnx xlnx_rebase_v5.4
        git checkout 3d600fd776cbda29abdea084f7437f7d9102b2a5
        # 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 <redacted>

All errors (new ones prefixed by >>):

   ld: drivers/usb/dwc3/gadget.o: in function `dwc3_simple_wakeup_capable':
   drivers/usb/dwc3/core.h:1420: multiple definition of `dwc3_simple_wakeup_capable'; drivers/usb/dwc3/core.o:drivers/usb/dwc3/core.h:1420: first defined here
   ld: drivers/usb/dwc3/gadget.o: in function `dwc3_set_simple_data':
>> drivers/usb/dwc3/core.h:1422: multiple definition of `dwc3_set_simple_data'; drivers/usb/dwc3/core.o:drivers/usb/dwc3/core.h:1422: first defined here
   ld: drivers/usb/dwc3/ep0.o: in function `dwc3_simple_wakeup_capable':
   drivers/usb/dwc3/core.h:1420: multiple definition of `dwc3_simple_wakeup_capable'; drivers/usb/dwc3/core.o:drivers/usb/dwc3/core.h:1420: first defined here
   ld: drivers/usb/dwc3/ep0.o: in function `dwc3_set_simple_data':
>> drivers/usb/dwc3/core.h:1422: multiple definition of `dwc3_set_simple_data'; drivers/usb/dwc3/core.o:drivers/usb/dwc3/core.h:1422: first defined here
   ld: drivers/usb/dwc3/debugfs.o: in function `dwc3_simple_wakeup_capable':
   drivers/usb/dwc3/core.h:1420: multiple definition of `dwc3_simple_wakeup_capable'; drivers/usb/dwc3/core.o:drivers/usb/dwc3/core.h:1420: first defined here
   ld: drivers/usb/dwc3/debugfs.o: in function `dwc3_set_simple_data':
>> drivers/usb/dwc3/core.h:1422: multiple definition of `dwc3_set_simple_data'; drivers/usb/dwc3/core.o:drivers/usb/dwc3/core.h:1422: first defined here

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

  1414	
  1415	#if IS_ENABLED(CONFIG_USB_DWC3_OF_SIMPLE)
  1416	void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup);
  1417	void dwc3_set_simple_data(struct dwc3 *dwc);
  1418	#else
  1419	void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
  1420	{ ; }
  1421	void dwc3_set_simple_data(struct dwc3 *dwc)
> 1422	{ ; }
  1423	#endif
  1424	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
```

## Attachments

- [.config.gz](https://ratatoskr.run/linux-arm-kernel/2020/10/8800844/attachment/0) (application/gzip, 33470 bytes)
- [(unnamed)](https://ratatoskr.run/linux-arm-kernel/2020/10/8800844/attachment/1) (text/plain, 176 bytes)
