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]
Date:   Thu, 8 Jul 2021 04:35:46 +0800
From:   kernel test robot <lkp@...el.com>
To:     "Michael S. Tsirkin" <mst@...hat.com>
Cc:     kbuild-all@...ts.01.org, kvm@...r.kernel.org,
        virtualization@...ts.linux-foundation.org, netdev@...r.kernel.org
Subject: [vhost:vhost 29/31]
 drivers/crypto/virtio/virtio_crypto_core.c:516:25: error: initialization of
 'int (*)(struct virtio_device *, void *)' from incompatible pointer type
 'int (*)(struct virtio_device *)'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost
head:   168a32fcc18a6f4afb7ea9d4760bf82becc67a43
commit: e397242b72e20f12139d895e4f10da736b2ae0a4 [29/31] virtio: allow passing config data from validate callback
config: openrisc-randconfig-r025-20210707 (attached as .config)
compiler: or1k-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://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git/commit/?id=e397242b72e20f12139d895e4f10da736b2ae0a4
        git remote add vhost https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git
        git fetch --no-tags vhost vhost
        git checkout e397242b72e20f12139d895e4f10da736b2ae0a4
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=openrisc 

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/crypto/virtio/virtio_crypto_core.c:516:25: error: initialization of 'int (*)(struct virtio_device *, void *)' from incompatible pointer type 'int (*)(struct virtio_device *)' [-Werror=incompatible-pointer-types]
     516 |  .probe               = virtcrypto_probe,
         |                         ^~~~~~~~~~~~~~~~
   drivers/crypto/virtio/virtio_crypto_core.c:516:25: note: (near initialization for 'virtio_crypto_driver.probe')
   cc1: some warnings being treated as errors


vim +516 drivers/crypto/virtio/virtio_crypto_core.c

dbaf0624ffa57a Gonglei 2016-12-15  509  
dbaf0624ffa57a Gonglei 2016-12-15  510  static struct virtio_driver virtio_crypto_driver = {
dbaf0624ffa57a Gonglei 2016-12-15  511  	.driver.name         = KBUILD_MODNAME,
dbaf0624ffa57a Gonglei 2016-12-15  512  	.driver.owner        = THIS_MODULE,
dbaf0624ffa57a Gonglei 2016-12-15  513  	.feature_table       = features,
dbaf0624ffa57a Gonglei 2016-12-15  514  	.feature_table_size  = ARRAY_SIZE(features),
dbaf0624ffa57a Gonglei 2016-12-15  515  	.id_table            = id_table,
dbaf0624ffa57a Gonglei 2016-12-15 @516  	.probe               = virtcrypto_probe,
dbaf0624ffa57a Gonglei 2016-12-15  517  	.remove              = virtcrypto_remove,
dbaf0624ffa57a Gonglei 2016-12-15  518  	.config_changed = virtcrypto_config_changed,
dbaf0624ffa57a Gonglei 2016-12-15  519  #ifdef CONFIG_PM_SLEEP
dbaf0624ffa57a Gonglei 2016-12-15  520  	.freeze = virtcrypto_freeze,
dbaf0624ffa57a Gonglei 2016-12-15  521  	.restore = virtcrypto_restore,
dbaf0624ffa57a Gonglei 2016-12-15  522  #endif
dbaf0624ffa57a Gonglei 2016-12-15  523  };
dbaf0624ffa57a Gonglei 2016-12-15  524  

:::::: The code at line 516 was first introduced by commit
:::::: dbaf0624ffa57ae6e7d87a823185ccd9a7852d3c crypto: add virtio-crypto driver

:::::: TO: Gonglei <arei.gonglei@...wei.com>
:::::: CC: Michael S. Tsirkin <mst@...hat.com>

---
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" (37608 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ