public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Sean Christopherson <seanjc@google.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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 *'
Date: Sat, 11 Apr 2026 15:24:39 +0800	[thread overview]
Message-ID: <202604111536.kYn2u1Pz-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-04-11  7:25 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=202604111536.kYn2u1Pz-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=seanjc@google.com \
    /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