Search Linux Wireless

[wireless-drivers-next:master 52/53] drivers/net/wireless/realtek/rtlwifi/usb.c:313:33: warning: cast between incompatible function types from 'void tasklet_struct to 'void unsigned int)'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next.git master
head:   26721b02466e396efaca6807b52916478c4f9197
commit: d3ccc14dfe9595d5ecd247db27bd66a1343f315a [52/53] rtlwifi/rtw88: convert tasklets to use new tasklet_setup() API
config: arm-randconfig-r012-20200827 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout d3ccc14dfe9595d5ecd247db27bd66a1343f315a
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

   drivers/net/wireless/realtek/rtlwifi/usb.c: In function '_rtl_usb_init_rx':
>> drivers/net/wireless/realtek/rtlwifi/usb.c:313:33: warning: cast between incompatible function types from 'void (*)(struct tasklet_struct *)' to 'void (*)(long unsigned int)' [-Wcast-function-type]
     313 |  rtlusb->rx_work_tasklet.func = (void(*)(unsigned long))_rtl_rx_work;
         |                                 ^

# https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next.git/commit/?id=d3ccc14dfe9595d5ecd247db27bd66a1343f315a
git remote add wireless-drivers-next https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next.git
git fetch --no-tags wireless-drivers-next master
git checkout d3ccc14dfe9595d5ecd247db27bd66a1343f315a
vim +313 drivers/net/wireless/realtek/rtlwifi/usb.c

   293	
   294	static int _rtl_usb_init_rx(struct ieee80211_hw *hw)
   295	{
   296		struct rtl_priv *rtlpriv = rtl_priv(hw);
   297		struct rtl_usb_priv *usb_priv = rtl_usbpriv(hw);
   298		struct rtl_usb *rtlusb = rtl_usbdev(usb_priv);
   299	
   300		rtlusb->rx_max_size = rtlpriv->cfg->usb_interface_cfg->rx_max_size;
   301		rtlusb->rx_urb_num = rtlpriv->cfg->usb_interface_cfg->rx_urb_num;
   302		rtlusb->in_ep = rtlpriv->cfg->usb_interface_cfg->in_ep_num;
   303		rtlusb->usb_rx_hdl = rtlpriv->cfg->usb_interface_cfg->usb_rx_hdl;
   304		rtlusb->usb_rx_segregate_hdl =
   305			rtlpriv->cfg->usb_interface_cfg->usb_rx_segregate_hdl;
   306	
   307		pr_info("rx_max_size %d, rx_urb_num %d, in_ep %d\n",
   308			rtlusb->rx_max_size, rtlusb->rx_urb_num, rtlusb->in_ep);
   309		init_usb_anchor(&rtlusb->rx_submitted);
   310		init_usb_anchor(&rtlusb->rx_cleanup_urbs);
   311	
   312		skb_queue_head_init(&rtlusb->rx_queue);
 > 313		rtlusb->rx_work_tasklet.func = (void(*)(unsigned long))_rtl_rx_work;
   314	
   315		return 0;
   316	}
   317	

---
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]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux