[bluetooth-next:master 42/43] drivers/bluetooth/btnxpuart.c:1322:15: error: use of undeclared identifier 'skb'

[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:   8968f507940cad09c8e2ecc4631f90d62709e17b
commit: 228c506481ea3f6ac5538188517c4a6f9feb5a26 [42/43] Bluetooth: btnxpuart: Add support to set BD address
config: x86_64-buildonly-randconfig-001-20250307 (https://download.01.org/0day-ci/archive/20250307/202503071027.4Q1Nm5Zx-lkp@xxxxxxxxx/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250307/202503071027.4Q1Nm5Zx-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503071027.4Q1Nm5Zx-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/bluetooth/btnxpuart.c:1322:15: error: use of undeclared identifier 'skb'
    1322 |                            PTR_ERR(skb));
         |                                    ^
   drivers/bluetooth/btnxpuart.c:1724:8: error: no member named 'cmd_timeout' in 'struct hci_dev'; did you mean 'rpa_timeout'?
    1724 |         hdev->cmd_timeout = nxp_cmd_timeout;
         |               ^~~~~~~~~~~
         |               rpa_timeout
   include/net/bluetooth/hci_core.h:593:10: note: 'rpa_timeout' declared here
     593 |         __u32                   rpa_timeout;
         |                                 ^
   2 errors generated.


vim +/skb +1322 drivers/bluetooth/btnxpuart.c

  1308	
  1309	static int nxp_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr)
  1310	{
  1311		union nxp_set_bd_addr_payload pcmd;
  1312		int err;
  1313	
  1314		pcmd.data.param_id = 0xfe;
  1315		pcmd.data.param_len = 6;
  1316		memcpy(pcmd.data.param, bdaddr, 6);
  1317	
  1318		/* BD address can be assigned only after first reset command. */
  1319		err = __hci_cmd_sync_status(hdev, HCI_OP_RESET, 0, NULL, HCI_INIT_TIMEOUT);
  1320		if (err) {
  1321			bt_dev_err(hdev, "Reset before setting local-bd-addr failed (%ld)",
> 1322				   PTR_ERR(skb));
  1323			return err;
  1324		}
  1325	
  1326		err = __hci_cmd_sync_status(hdev, HCI_NXP_SET_BD_ADDR, sizeof(pcmd),
  1327				     pcmd.buf, HCI_CMD_TIMEOUT);
  1328		if (err) {
  1329			bt_dev_err(hdev, "Changing device address failed (%d)", err);
  1330			return err;
  1331		}
  1332	
  1333		return 0;
  1334	}
  1335	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[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