Linux s390 Architecture development
 help / color / mirror / Atom feed
* [kvms390:sae 1/43] drivers/vfio/vfio_main.c:1554:29: error: incompatible pointer types passing 'struct file *' to parameter of type 'struct kvm *'
@ 2026-09-03  1:34 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-03  1:34 UTC (permalink / raw)
  To: Steffen Eiden
  Cc: oe-kbuild-all, linux-s390, Sean Christopherson, Jason J. Herne

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux.git sae
head:   e3cbc45b3834d68c7e45ba1562f45af312c99d81
commit: 457efc947019e9f93ce012b857f567189b9d382d [1/43] vfio: Use file-based reference counting for KVM
config: hexagon-randconfig-r063-20260903 (https://download.01.org/0day-ci/archive/20260903/202609030916.sgfe1yXN-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260903/202609030916.sgfe1yXN-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/202609030916.sgfe1yXN-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/vfio/vfio_main.c:1554:29: error: incompatible pointer types passing 'struct file *' to parameter of type 'struct kvm *' [-Werror,-Wincompatible-pointer-types]
    1554 |                 vfio_group_set_kvm(group, kvm);
         |                                           ^~~
   drivers/vfio/vfio.h:168:77: note: passing argument to parameter 'kvm' here
     168 | static inline void vfio_group_set_kvm(struct vfio_group *group, struct kvm *kvm)
         |                                                                             ^
   1 error generated.


vim +1554 drivers/vfio/vfio_main.c

34aeeecdb3357f Yi Liu        2023-07-18  1539  
b1a59be8a2b64d Yi Liu        2023-07-18  1540  /**
b1a59be8a2b64d Yi Liu        2023-07-18  1541   * vfio_file_set_kvm - Link a kvm with VFIO drivers
457efc947019e9 Steffen Eiden 2026-08-12  1542   * @vfio_file: VFIO group file or VFIO device file
457efc947019e9 Steffen Eiden 2026-08-12  1543   * @kvm: KVM file to link
b1a59be8a2b64d Yi Liu        2023-07-18  1544   *
b1a59be8a2b64d Yi Liu        2023-07-18  1545   * When a VFIO device is first opened the KVM will be available in
b1a59be8a2b64d Yi Liu        2023-07-18  1546   * device->kvm if one was associated with the file.
b1a59be8a2b64d Yi Liu        2023-07-18  1547   */
457efc947019e9 Steffen Eiden 2026-08-12  1548  void vfio_file_set_kvm(struct file *vfio_file, struct file *kvm)
b1a59be8a2b64d Yi Liu        2023-07-18  1549  {
b1a59be8a2b64d Yi Liu        2023-07-18  1550  	struct vfio_group *group;
b1a59be8a2b64d Yi Liu        2023-07-18  1551  
457efc947019e9 Steffen Eiden 2026-08-12  1552  	group = vfio_group_from_file(vfio_file);
b1a59be8a2b64d Yi Liu        2023-07-18  1553  	if (group)
b1a59be8a2b64d Yi Liu        2023-07-18 @1554  		vfio_group_set_kvm(group, kvm);
34aeeecdb3357f Yi Liu        2023-07-18  1555  
457efc947019e9 Steffen Eiden 2026-08-12  1556  	if (vfio_device_from_file(vfio_file))
457efc947019e9 Steffen Eiden 2026-08-12  1557  		vfio_device_file_set_kvm(vfio_file, kvm);
b1a59be8a2b64d Yi Liu        2023-07-18  1558  }
b1a59be8a2b64d Yi Liu        2023-07-18  1559  EXPORT_SYMBOL_GPL(vfio_file_set_kvm);
b1a59be8a2b64d Yi Liu        2023-07-18  1560  

:::::: The code at line 1554 was first introduced by commit
:::::: b1a59be8a2b64d00409dc7c9d523572ed32bcff8 vfio: Refine vfio file kAPIs for KVM

:::::: TO: Yi Liu <yi.l.liu@intel.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-09-03  1:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-03  1:34 [kvms390:sae 1/43] drivers/vfio/vfio_main.c:1554:29: 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