From: kernel test robot <lkp@intel.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: netdev@vger.kernel.org, kbuild-all@lists.01.org,
kvm@vger.kernel.org, virtualization@lists.linux-foundation.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 *)'
Date: Thu, 8 Jul 2021 04:35:46 +0800 [thread overview]
Message-ID: <202107080440.mWMgnrbs-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3126 bytes --]
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@intel.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@huawei.com>
:::::: CC: Michael S. Tsirkin <mst@redhat.com>
---
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: 37608 bytes --]
[-- Attachment #3: Type: text/plain, Size: 183 bytes --]
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
reply other threads:[~2021-07-07 20:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202107080440.mWMgnrbs-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=kvm@vger.kernel.org \
--cc=mst@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=virtualization@lists.linux-foundation.org \
/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 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).