[<prev] [next>] [day] [month] [year] [list]
Date: Thu, 8 Jul 2021 05:21:44 +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] fs/fuse/virtio_fs.c:967:13: 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: microblaze-randconfig-r023-20210707 (attached as .config)
compiler: microblaze-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=microblaze
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 >>):
>> fs/fuse/virtio_fs.c:967:13: error: initialization of 'int (*)(struct virtio_device *, void *)' from incompatible pointer type 'int (*)(struct virtio_device *)' [-Werror=incompatible-pointer-types]
967 | .probe = virtio_fs_probe,
| ^~~~~~~~~~~~~~~
fs/fuse/virtio_fs.c:967:13: note: (near initialization for 'virtio_fs_driver.probe')
cc1: some warnings being treated as errors
--
>> drivers/rpmsg/virtio_rpmsg_bus.c:1049:12: error: initialization of 'int (*)(struct virtio_device *, void *)' from incompatible pointer type 'int (*)(struct virtio_device *)' [-Werror=incompatible-pointer-types]
1049 | .probe = rpmsg_probe,
| ^~~~~~~~~~~
drivers/rpmsg/virtio_rpmsg_bus.c:1049:12: note: (near initialization for 'virtio_ipc_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/gpu/drm/virtio/virtgpu_drv.c:182:11: error: initialization of 'int (*)(struct virtio_device *, void *)' from incompatible pointer type 'int (*)(struct virtio_device *)' [-Werror=incompatible-pointer-types]
182 | .probe = virtio_gpu_probe,
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/virtio/virtgpu_drv.c:182:11: note: (near initialization for 'virtio_gpu_driver.probe')
cc1: some warnings being treated as errors
vim +967 fs/fuse/virtio_fs.c
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 960
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 961 static struct virtio_driver virtio_fs_driver = {
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 962 .driver.name = KBUILD_MODNAME,
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 963 .driver.owner = THIS_MODULE,
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 964 .id_table = id_table,
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 965 .feature_table = feature_table,
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 966 .feature_table_size = ARRAY_SIZE(feature_table),
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 @967 .probe = virtio_fs_probe,
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 968 .remove = virtio_fs_remove,
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 969 #ifdef CONFIG_PM_SLEEP
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 970 .freeze = virtio_fs_freeze,
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 971 .restore = virtio_fs_restore,
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 972 #endif
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 973 };
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 974
:::::: The code at line 967 was first introduced by commit
:::::: a62a8ef9d97da23762a588592c8b8eb50a8deb6a virtio-fs: add virtiofs filesystem
:::::: TO: Stefan Hajnoczi <stefanha@...hat.com>
:::::: CC: Miklos Szeredi <mszeredi@...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" (44272 bytes)
Powered by blists - more mailing lists