From: kernel test robot <lkp@intel.com>
To: Steffen Eiden <seiden@linux.ibm.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-s390@vger.kernel.org,
Sean Christopherson <seanjc@google.com>,
"Jason J. Herne" <jjherne@linux.ibm.com>
Subject: [kvms390:sae 1/43] drivers/vfio/vfio_main.c:1554:29: error: incompatible pointer types passing 'struct file *' to parameter of type 'struct kvm *'
Date: Thu, 03 Sep 2026 09:34:27 +0800 [thread overview]
Message-ID: <202609030916.sgfe1yXN-lkp@intel.com> (raw)
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
reply other threads:[~2026-09-03 1:35 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=202609030916.sgfe1yXN-lkp@intel.com \
--to=lkp@intel.com \
--cc=jjherne@linux.ibm.com \
--cc=linux-s390@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=seanjc@google.com \
--cc=seiden@linux.ibm.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