* [sean-jc:x86/guarded_kvm_headers 2/19] drivers/vfio/vfio_main.c:1379:29: error: incomplete definition of type 'struct vfio_group'
@ 2023-09-09 21:14 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-09-09 21:14 UTC (permalink / raw)
To: Sean Christopherson; +Cc: llvm, oe-kbuild-all
tree: https://github.com/sean-jc/linux x86/guarded_kvm_headers
head: a4cf1960322069d95b013d644a0121858e5c996f
commit: 9a113a1eb83dc18c8f26462b8781d0a59f8c607e [2/19] KVM: vfio: Pass in kvm_{get,put}_kvm() helpers instead of doing symbol lookups
config: x86_64-randconfig-075-20230910 (https://download.01.org/0day-ci/archive/20230910/202309100504.KDK9plcm-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230910/202309100504.KDK9plcm-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/202309100504.KDK9plcm-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/vfio/vfio_main.c:1379:29: error: incomplete definition of type 'struct vfio_group'
vfio_device_set_kvm(&group->kvm_ref, kvm, get_kvm, put_kvm);
~~~~~^
drivers/vfio/vfio.h:29:9: note: forward declaration of 'struct vfio_group'
struct vfio_group *group;
^
1 error generated.
vim +1379 drivers/vfio/vfio_main.c
1363
1364 /**
1365 * vfio_file_set_kvm - Link a kvm with VFIO drivers
1366 * @file: VFIO group file or VFIO device file
1367 * @kvm: KVM to link
1368 * @get_kvm: Callback to get a reference to @kvm
1369 * @put_kvm: Callback to put a reference to @kvm
1370 */
1371 void vfio_file_set_kvm(struct file *file, struct kvm *kvm,
1372 bool (*get_kvm)(struct kvm *kvm),
1373 void (*put_kvm)(struct kvm *kvm))
1374 {
1375 struct vfio_group *group;
1376
1377 group = vfio_group_from_file(file);
1378 if (group)
> 1379 vfio_device_set_kvm(&group->kvm_ref, kvm, get_kvm, put_kvm);
1380
1381 if (vfio_device_from_file(file))
1382 vfio_device_file_set_kvm(file, kvm, get_kvm, put_kvm);
1383 }
1384 EXPORT_SYMBOL_GPL(vfio_file_set_kvm);
1385 #endif
1386
--
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:[~2023-09-09 21:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-09 21:14 [sean-jc:x86/guarded_kvm_headers 2/19] drivers/vfio/vfio_main.c:1379:29: error: incomplete definition of type 'struct vfio_group' 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