[linux-next:master 13182/13495] drivers/bluetooth/btusb.c:2720:21: warning: assignment to 'struct urb *' from 'int' makes pointer from integer without a cast

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   dee7f101b64219f512bb2f842227bd04c14efe30
commit: 52828ea60dfdd05246fc92dedfad1c8bbfa2dd66 [13182/13495] Bluetooth: btmtk: Fix btmtk.c undefined reference build error
config: nios2-randconfig-r024-20220113 (https://download.01.org/0day-ci/archive/20240722/202407221627.toIry7kJ-lkp@xxxxxxxxx/config)
compiler: nios2-linux-gcc (GCC) 13.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240722/202407221627.toIry7kJ-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/202407221627.toIry7kJ-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

   drivers/bluetooth/btusb.c: In function 'btusb_mtk_reset':
   drivers/bluetooth/btusb.c:2705:15: error: implicit declaration of function 'btmtk_usb_subsys_reset' [-Werror=implicit-function-declaration]
    2705 |         err = btmtk_usb_subsys_reset(hdev, btmtk_data->dev_id);
         |               ^~~~~~~~~~~~~~~~~~~~~~
   drivers/bluetooth/btusb.c: In function 'btusb_send_frame_mtk':
   drivers/bluetooth/btusb.c:2720:23: error: implicit declaration of function 'alloc_mtk_intr_urb' [-Werror=implicit-function-declaration]
    2720 |                 urb = alloc_mtk_intr_urb(hdev, skb, btusb_tx_complete);
         |                       ^~~~~~~~~~~~~~~~~~
>> drivers/bluetooth/btusb.c:2720:21: warning: assignment to 'struct urb *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    2720 |                 urb = alloc_mtk_intr_urb(hdev, skb, btusb_tx_complete);
         |                     ^
   drivers/bluetooth/btusb.c: In function 'btusb_mtk_setup':
   drivers/bluetooth/btusb.c:2749:16: error: implicit declaration of function 'btmtk_usb_setup' [-Werror=implicit-function-declaration]
    2749 |         return btmtk_usb_setup(hdev);
         |                ^~~~~~~~~~~~~~~
   drivers/bluetooth/btusb.c: In function 'btusb_mtk_shutdown':
   drivers/bluetooth/btusb.c:2760:16: error: implicit declaration of function 'btmtk_usb_shutdown'; did you mean 'btusb_mtk_shutdown'? [-Werror=implicit-function-declaration]
    2760 |         return btmtk_usb_shutdown(hdev);
         |                ^~~~~~~~~~~~~~~~~~
         |                btusb_mtk_shutdown
   drivers/bluetooth/btusb.c: In function 'btusb_probe':
   drivers/bluetooth/btusb.c:3869:34: error: 'btmtk_usb_recv_acl' undeclared (first use in this function); did you mean 'btusb_recv_acl'?
    3869 |                 data->recv_acl = btmtk_usb_recv_acl;
         |                                  ^~~~~~~~~~~~~~~~~~
         |                                  btusb_recv_acl
   drivers/bluetooth/btusb.c:3869:34: note: each undeclared identifier is reported only once for each function it appears in
   drivers/bluetooth/btusb.c:3870:33: error: 'btmtk_usb_suspend' undeclared (first use in this function)
    3870 |                 data->suspend = btmtk_usb_suspend;
         |                                 ^~~~~~~~~~~~~~~~~
   drivers/bluetooth/btusb.c:3871:32: error: 'btmtk_usb_resume' undeclared (first use in this function)
    3871 |                 data->resume = btmtk_usb_resume;
         |                                ^~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +2720 drivers/bluetooth/btusb.c

25b6d7593a3af7 Jing Cai 2023-06-29  2712  
ceac1cb0259de6 Chris Lu 2024-07-04  2713  static int btusb_send_frame_mtk(struct hci_dev *hdev, struct sk_buff *skb)
ceac1cb0259de6 Chris Lu 2024-07-04  2714  {
ceac1cb0259de6 Chris Lu 2024-07-04  2715  	struct urb *urb;
ceac1cb0259de6 Chris Lu 2024-07-04  2716  
ceac1cb0259de6 Chris Lu 2024-07-04  2717  	BT_DBG("%s", hdev->name);
ceac1cb0259de6 Chris Lu 2024-07-04  2718  
ceac1cb0259de6 Chris Lu 2024-07-04  2719  	if (hci_skb_pkt_type(skb) == HCI_ISODATA_PKT) {
ceac1cb0259de6 Chris Lu 2024-07-04 @2720  		urb = alloc_mtk_intr_urb(hdev, skb, btusb_tx_complete);
ceac1cb0259de6 Chris Lu 2024-07-04  2721  		if (IS_ERR(urb))
ceac1cb0259de6 Chris Lu 2024-07-04  2722  			return PTR_ERR(urb);
ceac1cb0259de6 Chris Lu 2024-07-04  2723  
ceac1cb0259de6 Chris Lu 2024-07-04  2724  		return submit_or_queue_tx_urb(hdev, urb);
ceac1cb0259de6 Chris Lu 2024-07-04  2725  	} else {
ceac1cb0259de6 Chris Lu 2024-07-04  2726  		return btusb_send_frame(hdev, skb);
ceac1cb0259de6 Chris Lu 2024-07-04  2727  	}
ceac1cb0259de6 Chris Lu 2024-07-04  2728  }
ceac1cb0259de6 Chris Lu 2024-07-04  2729  

:::::: The code at line 2720 was first introduced by commit
:::::: ceac1cb0259de682d78f5c784ef8e0b13022e9d9 Bluetooth: btusb: mediatek: add ISO data transmission functions

:::::: TO: Chris Lu <chris.lu@xxxxxxxxxxxx>
:::::: CC: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux