Search Linux Wireless

Re: [wireless-drivers-next:master 53/53] drivers/net/wireless/zydas/zd1211rw/zd_usb.c:1181: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: 26721b02466e396efaca6807b52916478c4f9197 [53/53] zd1211rw: 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 26721b02466e396efaca6807b52916478c4f9197
>         # 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 >>):

 I have it fixed for this as well as patch 52(realtek) Shall I send out V2.

Thanks.
>
>    drivers/net/wireless/zydas/zd1211rw/zd_usb.c: In function 'init_usb_rx':
> >> drivers/net/wireless/zydas/zd1211rw/zd_usb.c:1181:33: warning: cast between incompatible function types from 'void (*)(struct tasklet_struct *)' to 'void (*)(long unsigned int)' [-Wcast-function-type]
>     1181 |  rx->reset_timer_tasklet.func = (void (*)(unsigned long))
>          |                                 ^
>
> # https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next.git/commit/?id=26721b02466e396efaca6807b52916478c4f9197
> 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 26721b02466e396efaca6807b52916478c4f9197
> vim +1181 drivers/net/wireless/zydas/zd1211rw/zd_usb.c
>
>   1167
>   1168  static inline void init_usb_rx(struct zd_usb *usb)
>   1169  {
>   1170          struct zd_usb_rx *rx = &usb->rx;
>   1171
>   1172          spin_lock_init(&rx->lock);
>   1173          mutex_init(&rx->setup_mutex);
>   1174          if (interface_to_usbdev(usb->intf)->speed == USB_SPEED_HIGH) {
>   1175                  rx->usb_packet_size = 512;
>   1176          } else {
>   1177                  rx->usb_packet_size = 64;
>   1178          }
>   1179          ZD_ASSERT(rx->fragment_length == 0);
>   1180          INIT_DELAYED_WORK(&rx->idle_work, zd_rx_idle_timer_handler);
> > 1181          rx->reset_timer_tasklet.func = (void (*)(unsigned long))
>   1182                                          zd_usb_reset_rx_idle_timer_tasklet;
>   1183  }
>   1184
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx



-- 
       - Allen



[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