lkml.org 
[lkml]   [2021]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectdrivers/net/wireless/mac80211_hwsim.c:4407:11: error: initialization of 'int (*)(struct virtio_device *, void *)' from incompatible pointer type 'int (*)(struct virtio_device *)'
tree:   https://github.com/0day-ci/linux/commits/UPDATE-20210706-022438/Xie-Yongji/virtio-blk-Add-validation-for-block-size-in-config-space/20210617-131203
head: 1dbb804890839a4c6208f695a9ae9234f31cc5ad
commit: 1dbb804890839a4c6208f695a9ae9234f31cc5ad virtio-blk: Add validation for block size in config space
date: 2 hours ago
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-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
# https://github.com/0day-ci/linux/commit/1dbb804890839a4c6208f695a9ae9234f31cc5ad
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review UPDATE-20210706-022438/Xie-Yongji/virtio-blk-Add-validation-for-block-size-in-config-space/20210617-131203
git checkout 1dbb804890839a4c6208f695a9ae9234f31cc5ad
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh

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

All errors (new ones prefixed by >>):

>> drivers/net/wireless/mac80211_hwsim.c:4407:11: error: initialization of 'int (*)(struct virtio_device *, void *)' from incompatible pointer type 'int (*)(struct virtio_device *)' [-Werror=incompatible-pointer-types]
4407 | .probe = hwsim_virtio_probe,
| ^~~~~~~~~~~~~~~~~~
drivers/net/wireless/mac80211_hwsim.c:4407:11: note: (near initialization for 'virtio_hwsim.probe')
cc1: some warnings being treated as errors
--
>> drivers/virtio/virtio_balloon.c:1141:14: error: initialization of 'void * (*)(struct virtio_device *)' from incompatible pointer type 'int (*)(struct virtio_device *)' [-Werror=incompatible-pointer-types]
1141 | .validate = virtballoon_validate,
| ^~~~~~~~~~~~~~~~~~~~
drivers/virtio/virtio_balloon.c:1141:14: note: (near initialization for 'virtio_balloon_driver.validate')
>> drivers/virtio/virtio_balloon.c:1142:11: error: initialization of 'int (*)(struct virtio_device *, void *)' from incompatible pointer type 'int (*)(struct virtio_device *)' [-Werror=incompatible-pointer-types]
1142 | .probe = virtballoon_probe,
| ^~~~~~~~~~~~~~~~~
drivers/virtio/virtio_balloon.c:1142:11: note: (near initialization for 'virtio_balloon_driver.probe')
cc1: some warnings being treated as errors
--
>> drivers/virtio/virtio_input.c:401:25: error: initialization of 'int (*)(struct virtio_device *, void *)' from incompatible pointer type 'int (*)(struct virtio_device *)' [-Werror=incompatible-pointer-types]
401 | .probe = virtinput_probe,
| ^~~~~~~~~~~~~~~
drivers/virtio/virtio_input.c:401:25: note: (near initialization for 'virtio_input_driver.probe')
cc1: some warnings being treated as errors
--
>> drivers/block/virtio_blk.c:985:14: error: initialization of 'int (*)(struct virtio_device *, void *)' from incompatible pointer type 'int (*)(struct virtio_device *)' [-Werror=incompatible-pointer-types]
985 | .probe = virtblk_probe,
| ^~~~~~~~~~~~~
drivers/block/virtio_blk.c:985:14: note: (near initialization for 'virtio_blk.probe')
cc1: some warnings being treated as errors
--
>> drivers/bluetooth/virtio_bt.c:392:25: error: initialization of 'int (*)(struct virtio_device *, void *)' from incompatible pointer type 'int (*)(struct virtio_device *)' [-Werror=incompatible-pointer-types]
392 | .probe = virtbt_probe,
| ^~~~~~~~~~~~
drivers/bluetooth/virtio_bt.c:392:25: note: (near initialization for 'virtbt_driver.probe')
cc1: some warnings being treated as errors
--
>> net/vmw_vsock/virtio_transport.c:706:11: error: initialization of 'int (*)(struct virtio_device *, void *)' from incompatible pointer type 'int (*)(struct virtio_device *)' [-Werror=incompatible-pointer-types]
706 | .probe = virtio_vsock_probe,
| ^~~~~~~~~~~~~~~~~~
net/vmw_vsock/virtio_transport.c:706:11: note: (near initialization for 'virtio_vsock_driver.probe')
cc1: some warnings being treated as errors

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
Selected by
- SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
- SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC


vim +4407 drivers/net/wireless/mac80211_hwsim.c

5d44fe7c9808c5 Erel Geron 2020-03-05 4402
5d44fe7c9808c5 Erel Geron 2020-03-05 4403 static struct virtio_driver virtio_hwsim = {
5d44fe7c9808c5 Erel Geron 2020-03-05 4404 .driver.name = KBUILD_MODNAME,
5d44fe7c9808c5 Erel Geron 2020-03-05 4405 .driver.owner = THIS_MODULE,
5d44fe7c9808c5 Erel Geron 2020-03-05 4406 .id_table = id_table,
5d44fe7c9808c5 Erel Geron 2020-03-05 @4407 .probe = hwsim_virtio_probe,
5d44fe7c9808c5 Erel Geron 2020-03-05 4408 .remove = hwsim_virtio_remove,
5d44fe7c9808c5 Erel Geron 2020-03-05 4409 };
5d44fe7c9808c5 Erel Geron 2020-03-05 4410

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-07-05 22:53    [W:0.047 / U:0.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site