All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Allen Pais <allen.lkml@gmail.com>
Cc: kbuild-all@lists.01.org, Kalle Valo <kvalo@codeaurora.org>,
	linux-wireless@vger.kernel.org,
	Romain Perier <romain.perier@gmail.com>
Subject: [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: Fri, 28 Aug 2020 02:51:42 +0800	[thread overview]
Message-ID: <202008280240.Op3fNc1d%lkp@intel.com> (raw)

[-- 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 --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [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: Fri, 28 Aug 2020 02:51:42 +0800	[thread overview]
Message-ID: <202008280240.Op3fNc1d%lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2467 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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 32062 bytes --]

             reply	other threads:[~2020-08-27 19:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-27 18:51 kernel test robot [this message]
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
2020-08-28  7:34     ` Kalle Valo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202008280240.Op3fNc1d%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=allen.lkml@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=kvalo@codeaurora.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=romain.perier@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.