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/guarded_kvm_headers 2/19] drivers/vfio/vfio_main.c:1379:29: error: incomplete definition of type 'struct vfio_group'
Date: Sun, 10 Sep 2023 05:14:05 +0800	[thread overview]
Message-ID: <202309100504.KDK9plcm-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-09-09 21:14 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=202309100504.KDK9plcm-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