* [bluetooth-next:master 4/24] net/bluetooth/hci_sync.c:1333:5: warning: no previous prototype for 'hci_scan_disable_sync'
@ 2021-10-30 2:49 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-10-30 2:49 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: kbuild-all, linux-bluetooth, Marcel Holtmann
[-- Attachment #1: Type: text/plain, Size: 2541 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master
head: d6cba4e6d0e202276b81117b96106859a4e2d56e
commit: e8907f76544ffe225ab95d70f7313267b1d0c76d [4/24] Bluetooth: hci_sync: Make use of hci_cmd_sync_queue set 3
config: i386-randconfig-m021-20211029 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git/commit/?id=e8907f76544ffe225ab95d70f7313267b1d0c76d
git remote add bluetooth-next https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git
git fetch --no-tags bluetooth-next master
git checkout e8907f76544ffe225ab95d70f7313267b1d0c76d
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> net/bluetooth/hci_sync.c:1333:5: warning: no previous prototype for 'hci_scan_disable_sync' [-Wmissing-prototypes]
1333 | int hci_scan_disable_sync(struct hci_dev *hdev, bool rpa_le_conn)
| ^~~~~~~~~~~~~~~~~~~~~
>> net/bluetooth/hci_sync.c:1762:5: warning: no previous prototype for 'hci_passive_scan_sync' [-Wmissing-prototypes]
1762 | int hci_passive_scan_sync(struct hci_dev *hdev)
| ^~~~~~~~~~~~~~~~~~~~~
vim +/hci_scan_disable_sync +1333 net/bluetooth/hci_sync.c
1332
> 1333 int hci_scan_disable_sync(struct hci_dev *hdev, bool rpa_le_conn)
1334 {
1335 int err;
1336
1337 /* If controller is not scanning we are done. */
1338 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN))
1339 return 0;
1340
1341 if (hdev->scanning_paused) {
1342 bt_dev_dbg(hdev, "Scanning is paused for suspend");
1343 return 0;
1344 }
1345
1346 if (hdev->suspended)
1347 set_bit(SUSPEND_SCAN_DISABLE, hdev->suspend_tasks);
1348
1349 err = hci_le_set_scan_enable_sync(hdev, LE_SCAN_DISABLE, 0x00);
1350 if (err) {
1351 bt_dev_err(hdev, "Unable to disable scanning: %d", err);
1352 return err;
1353 }
1354
1355 if (rpa_le_conn) {
1356 err = hci_le_set_addr_resolution_enable_sync(hdev, 0x00);
1357 if (err)
1358 bt_dev_err(hdev, "Unable to disable LL privacy: %d",
1359 err);
1360 }
1361
1362 return err;
1363 }
1364
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 37037 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [bluetooth-next:master 4/24] net/bluetooth/hci_sync.c:1333:5: warning: no previous prototype for 'hci_scan_disable_sync'
@ 2021-10-30 2:49 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-10-30 2:49 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2608 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master
head: d6cba4e6d0e202276b81117b96106859a4e2d56e
commit: e8907f76544ffe225ab95d70f7313267b1d0c76d [4/24] Bluetooth: hci_sync: Make use of hci_cmd_sync_queue set 3
config: i386-randconfig-m021-20211029 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git/commit/?id=e8907f76544ffe225ab95d70f7313267b1d0c76d
git remote add bluetooth-next https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git
git fetch --no-tags bluetooth-next master
git checkout e8907f76544ffe225ab95d70f7313267b1d0c76d
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> net/bluetooth/hci_sync.c:1333:5: warning: no previous prototype for 'hci_scan_disable_sync' [-Wmissing-prototypes]
1333 | int hci_scan_disable_sync(struct hci_dev *hdev, bool rpa_le_conn)
| ^~~~~~~~~~~~~~~~~~~~~
>> net/bluetooth/hci_sync.c:1762:5: warning: no previous prototype for 'hci_passive_scan_sync' [-Wmissing-prototypes]
1762 | int hci_passive_scan_sync(struct hci_dev *hdev)
| ^~~~~~~~~~~~~~~~~~~~~
vim +/hci_scan_disable_sync +1333 net/bluetooth/hci_sync.c
1332
> 1333 int hci_scan_disable_sync(struct hci_dev *hdev, bool rpa_le_conn)
1334 {
1335 int err;
1336
1337 /* If controller is not scanning we are done. */
1338 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN))
1339 return 0;
1340
1341 if (hdev->scanning_paused) {
1342 bt_dev_dbg(hdev, "Scanning is paused for suspend");
1343 return 0;
1344 }
1345
1346 if (hdev->suspended)
1347 set_bit(SUSPEND_SCAN_DISABLE, hdev->suspend_tasks);
1348
1349 err = hci_le_set_scan_enable_sync(hdev, LE_SCAN_DISABLE, 0x00);
1350 if (err) {
1351 bt_dev_err(hdev, "Unable to disable scanning: %d", err);
1352 return err;
1353 }
1354
1355 if (rpa_le_conn) {
1356 err = hci_le_set_addr_resolution_enable_sync(hdev, 0x00);
1357 if (err)
1358 bt_dev_err(hdev, "Unable to disable LL privacy: %d",
1359 err);
1360 }
1361
1362 return err;
1363 }
1364
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37037 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-30 2:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-30 2:49 [bluetooth-next:master 4/24] net/bluetooth/hci_sync.c:1333:5: warning: no previous prototype for 'hci_scan_disable_sync' kernel test robot
2021-10-30 2:49 ` kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.