net/bluetooth/msft.h:64: multiple definition of `msft_remove_all_monitors_on_suspend'; net/bluetooth/hci_core.o:net/bluetooth/msft.h:64: first defined here

From: kernel test robot
Date: Tue Nov 09 2021 - 11:15:52 EST


tree: https://github.com/0day-ci/linux/commits/Manish-Mandlik/bluetooth-Fix-Advertisement-Monitor-Suspend-Resume/20210922-154726
head: d004fba7b2b2e00675030de2a4c5620c094a829f
commit: d004fba7b2b2e00675030de2a4c5620c094a829f bluetooth: Fix Advertisement Monitor Suspend/Resume
date: 7 weeks ago
config: x86_64-rhel-8.3-kselftests (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/d004fba7b2b2e00675030de2a4c5620c094a829f
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Manish-Mandlik/bluetooth-Fix-Advertisement-Monitor-Suspend-Resume/20210922-154726
git checkout d004fba7b2b2e00675030de2a4c5620c094a829f
# 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@xxxxxxxxx>

All errors (new ones prefixed by >>):

ld: net/bluetooth/hci_event.o: in function `msft_remove_all_monitors_on_suspend':
>> net/bluetooth/msft.h:64: multiple definition of `msft_remove_all_monitors_on_suspend'; net/bluetooth/hci_core.o:net/bluetooth/msft.h:64: first defined here
ld: net/bluetooth/hci_event.o: in function `msft_reregister_monitors_on_resume':
>> net/bluetooth/msft.h:64: multiple definition of `msft_reregister_monitors_on_resume'; net/bluetooth/hci_core.o:net/bluetooth/msft.h:64: first defined here
ld: net/bluetooth/mgmt.o: in function `msft_remove_all_monitors_on_suspend':
>> net/bluetooth/msft.h:64: multiple definition of `msft_remove_all_monitors_on_suspend'; net/bluetooth/hci_core.o:net/bluetooth/msft.h:64: first defined here
ld: net/bluetooth/mgmt.o: in function `msft_reregister_monitors_on_resume':
>> net/bluetooth/msft.h:64: multiple definition of `msft_reregister_monitors_on_resume'; net/bluetooth/hci_core.o:net/bluetooth/msft.h:64: first defined here
ld: net/bluetooth/hci_request.o: in function `msft_remove_all_monitors_on_suspend':
>> net/bluetooth/msft.h:64: multiple definition of `msft_remove_all_monitors_on_suspend'; net/bluetooth/hci_core.o:net/bluetooth/msft.h:64: first defined here
ld: net/bluetooth/hci_request.o: in function `msft_reregister_monitors_on_resume':
>> net/bluetooth/msft.h:64: multiple definition of `msft_reregister_monitors_on_resume'; net/bluetooth/hci_core.o:net/bluetooth/msft.h:64: first defined here


vim +64 net/bluetooth/msft.h

63
> 64 void msft_remove_all_monitors_on_suspend(struct hci_dev *hdev) {}
65 void msft_reregister_monitors_on_resume(struct hci_dev *hdev) {}
66

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

Attachment: .config.gz
Description: application/gzip