lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202107060438.WQL6MdVx-lkp@intel.com>
Date:   Tue, 6 Jul 2021 04:50:46 +0800
From:   kernel test robot <lkp@...el.com>
To:     "Michael S. Tsirkin" <mst@...hat.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        0day robot <lkp@...el.com>
Subject: drivers/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@...el.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

Download attachment ".config.gz" of type "application/gzip" (54732 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ