* [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)'
@ 2020-08-27 18:51 kernel test robot
2020-08-28 7:26 ` Allen
0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2020-08-27 18:51 UTC (permalink / raw)
To: Allen Pais; +Cc: kbuild-all, Kalle Valo, linux-wireless, Romain Perier
[-- Attachment #1: Type: text/plain, Size: 2415 bytes --]
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@intel.com>
All warnings (new ones prefixed by >>):
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@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32062 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* 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)'
2020-08-27 18:51 [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)' kernel test robot
@ 2020-08-28 7:26 ` Allen
2020-08-28 7:34 ` Kalle Valo
0 siblings, 1 reply; 3+ messages in thread
From: Allen @ 2020-08-28 7:26 UTC (permalink / raw)
To: kernel test robot; +Cc: kbuild-all, Kalle Valo, linux-wireless, Romain Perier
> 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@intel.com>
>
> 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@lists.01.org
--
- Allen
^ permalink raw reply [flat|nested] 3+ messages in thread
* 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)'
2020-08-28 7:26 ` Allen
@ 2020-08-28 7:34 ` Kalle Valo
0 siblings, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2020-08-28 7:34 UTC (permalink / raw)
To: Allen
Cc: kernel test robot, kbuild-all, linux-wireless, Romain Perier,
linux-wireless
+ linux-wireless
Allen <allen.lkml@gmail.com> writes:
>> 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@intel.com>
>>
>> All warnings (new ones prefixed by >>):
>
> I have it fixed for this as well as patch 52(realtek) Shall I send out V2.
The patch is already applied to wireless-drivers-next and cannot be
changed. Please send a followup patch which fixes the warning.
--
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-08-28 7:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-27 18:51 [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)' kernel test robot
2020-08-28 7:26 ` Allen
2020-08-28 7:34 ` Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).