[bluetooth-next:master 4/24] net/bluetooth/hci_sync.c:1333:5: warning: no previous prototype for 'hci_scan_disable_sync'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>

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@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux