* [sean-jc:x86/vfio_kvm_file_refcount 1/1] drivers/s390/crypto/vfio_ap_ops.c:2061:43: error: incompatible pointer types passing 'struct file *' to parameter of type 'struct kvm *'
@ 2026-04-11 7:24 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-11 7:24 UTC (permalink / raw)
To: Sean Christopherson; +Cc: llvm, oe-kbuild-all
tree: https://github.com/sean-jc/linux x86/vfio_kvm_file_refcount
head: 3088b9660354afa55c95eeec0bba6d939123ce06
commit: 3088b9660354afa55c95eeec0bba6d939123ce06 [1/1] tmp
config: s390-defconfig (https://download.01.org/0day-ci/archive/20260411/202604111536.kYn2u1Pz-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project ae825cb8cea7f3ac8e5e4096f22713845cf5e501)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260411/202604111536.kYn2u1Pz-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604111536.kYn2u1Pz-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/s390/crypto/vfio_ap_ops.c:2061:43: error: incompatible pointer types passing 'struct file *' to parameter of type 'struct kvm *' [-Wincompatible-pointer-types]
2061 | return vfio_ap_mdev_set_kvm(matrix_mdev, vdev->kvm);
| ^~~~~~~~~
drivers/s390/crypto/vfio_ap_ops.c:1822:17: note: passing argument to parameter 'kvm' here
1822 | struct kvm *kvm)
| ^
1 error generated.
--
>> drivers/vfio/pci/vfio_pci_zdev.c:155:43: error: incompatible pointer types passing 'struct file *' to parameter of type 'struct kvm *' [-Wincompatible-pointer-types]
155 | return zpci_kvm_hook.kvm_register(zdev, vdev->vdev.kvm);
| ^~~~~~~~~~~~~~
1 error generated.
vim +2061 drivers/s390/crypto/vfio_ap_ops.c
46a7263d4746a2 Tony Krowiak 2018-09-25 2052
eb0feefd4c025b Jason Gunthorpe 2021-08-23 2053 static int vfio_ap_mdev_open_device(struct vfio_device *vdev)
258287c994de8f Tony Krowiak 2018-09-25 2054 {
eb0feefd4c025b Jason Gunthorpe 2021-08-23 2055 struct ap_matrix_mdev *matrix_mdev =
eb0feefd4c025b Jason Gunthorpe 2021-08-23 2056 container_of(vdev, struct ap_matrix_mdev, vdev);
258287c994de8f Tony Krowiak 2018-09-25 2057
421cfe6596f6cb Matthew Rosato 2022-05-19 2058 if (!vdev->kvm)
421cfe6596f6cb Matthew Rosato 2022-05-19 2059 return -EINVAL;
258287c994de8f Tony Krowiak 2018-09-25 2060
ce4b4657ff1892 Jason Gunthorpe 2022-07-19 @2061 return vfio_ap_mdev_set_kvm(matrix_mdev, vdev->kvm);
258287c994de8f Tony Krowiak 2018-09-25 2062 }
258287c994de8f Tony Krowiak 2018-09-25 2063
:::::: The code at line 2061 was first introduced by commit
:::::: ce4b4657ff18925c315855aa290e93c5fa652d96 vfio: Replace the DMA unmapping notifier with a callback
:::::: TO: Jason Gunthorpe <jgg@nvidia.com>
:::::: CC: Alex Williamson <alex.williamson@redhat.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-04-11 7:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-11 7:24 [sean-jc:x86/vfio_kvm_file_refcount 1/1] drivers/s390/crypto/vfio_ap_ops.c:2061:43: error: incompatible pointer types passing 'struct file *' to parameter of type 'struct kvm *' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox