All of lore.kernel.org
 help / color / mirror / Atom feed
* [bluetooth-next:master 42/43] drivers/bluetooth/btnxpuart.c:1322:36: error: 'skb' undeclared
@ 2025-03-07  3:07 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-07  3:07 UTC (permalink / raw)
  To: Neeraj Sanjay Kale
  Cc: oe-kbuild-all, linux-bluetooth, Luiz Augusto von Dentz,
	Loic Poulain, Johan Korsnes, Kristian Krohn

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: sh-randconfig-002-20250307 (https://download.01.org/0day-ci/archive/20250307/202503071045.5Ac2pLEW-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250307/202503071045.5Ac2pLEW-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503071045.5Ac2pLEW-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   In file included from drivers/bluetooth/btnxpuart.c:21:
   drivers/bluetooth/btnxpuart.c: In function 'nxp_set_bdaddr':
>> drivers/bluetooth/btnxpuart.c:1322:36: error: 'skb' undeclared (first use in this function)
    1322 |                            PTR_ERR(skb));
         |                                    ^~~
   include/net/bluetooth/bluetooth.h:264:52: note: in definition of macro 'BT_ERR'
     264 | #define BT_ERR(fmt, ...)        bt_err(fmt "\n", ##__VA_ARGS__)
         |                                                    ^~~~~~~~~~~
   drivers/bluetooth/btnxpuart.c:1321:17: note: in expansion of macro 'bt_dev_err'
    1321 |                 bt_dev_err(hdev, "Reset before setting local-bd-addr failed (%ld)",
         |                 ^~~~~~~~~~
   drivers/bluetooth/btnxpuart.c:1322:36: note: each undeclared identifier is reported only once for each function it appears in
    1322 |                            PTR_ERR(skb));
         |                                    ^~~
   include/net/bluetooth/bluetooth.h:264:52: note: in definition of macro 'BT_ERR'
     264 | #define BT_ERR(fmt, ...)        bt_err(fmt "\n", ##__VA_ARGS__)
         |                                                    ^~~~~~~~~~~
   drivers/bluetooth/btnxpuart.c:1321:17: note: in expansion of macro 'bt_dev_err'
    1321 |                 bt_dev_err(hdev, "Reset before setting local-bd-addr failed (%ld)",
         |                 ^~~~~~~~~~
   drivers/bluetooth/btnxpuart.c: In function 'nxp_serdev_probe':
   drivers/bluetooth/btnxpuart.c:1724:15: error: 'struct hci_dev' has no member named 'cmd_timeout'; did you mean 'cmd_timer'?
    1724 |         hdev->cmd_timeout = nxp_cmd_timeout;
         |               ^~~~~~~~~~~
         |               cmd_timer
>> drivers/bluetooth/btnxpuart.c:1673:18: warning: unused variable 'ba' [-Wunused-variable]
    1673 |         bdaddr_t ba = {0};
         |                  ^~


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-03-07  3:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-07  3:07 [bluetooth-next:master 42/43] drivers/bluetooth/btnxpuart.c:1322:36: error: 'skb' undeclared 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.