* [android-common:android15-6.6-partner_predev 23/81] arch/x86/kvm/../../../virt/kvm/vfio.c:394:8: error: call to undeclared function 'kvm_call_hyp_nvhe'; ISO C99 and later do not support implicit function declarations
@ 2024-12-06 6:10 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-12-06 6:10 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
Hi Mostafa,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/common android15-6.6-partner_predev
head: 189fb017ecf5ae2222e37e4461dc2369022a9b99
commit: ce9964a039a624643c11ab2dab631b29c81d865f [23/81] ANDROID: kvm/vfio: Add pviommu group and attach function
config: i386-buildonly-randconfig-001-20241206 (https://download.01.org/0day-ci/archive/20241206/202412061436.BFNE5ITW-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241206/202412061436.BFNE5ITW-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/202412061436.BFNE5ITW-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/x86/kvm/../../../virt/kvm/vfio.c:12:
In file included from include/linux/kvm_host.h:16:
In file included from include/linux/mm.h:2224:
include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
In file included from arch/x86/kvm/../../../virt/kvm/vfio.c:12:
include/linux/kvm_host.h:1575:6: warning: no previous prototype for function 'kvm_arch_reclaim_device' [-Wmissing-prototypes]
1575 | void kvm_arch_reclaim_device(struct device *dev)
| ^
include/linux/kvm_host.h:1575:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1575 | void kvm_arch_reclaim_device(struct device *dev)
| ^
| static
include/linux/kvm_host.h:1579:6: warning: no previous prototype for function 'kvm_arch_reclaim_group' [-Wmissing-prototypes]
1579 | void kvm_arch_reclaim_group(struct iommu_group *group)
| ^
include/linux/kvm_host.h:1579:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1579 | void kvm_arch_reclaim_group(struct iommu_group *group)
| ^
| static
arch/x86/kvm/../../../virt/kvm/vfio.c:94:18: error: use of undeclared identifier 'vfio_file_get_device'; did you mean 'kvm_vfio_file_get_device'?
94 | fn = symbol_get(vfio_file_get_device);
| ^~~~~~~~~~~~~~~~~~~~
| kvm_vfio_file_get_device
include/linux/module.h:814:40: note: expanded from macro 'symbol_get'
814 | #define symbol_get(x) ({ extern typeof(x) x __attribute__((weak,visibility("hidden"))); &(x); })
| ^
arch/x86/kvm/../../../virt/kvm/vfio.c:89:23: note: 'kvm_vfio_file_get_device' declared here
89 | static struct device *kvm_vfio_file_get_device(struct file *file)
| ^
>> arch/x86/kvm/../../../virt/kvm/vfio.c:394:8: error: call to undeclared function 'kvm_call_hyp_nvhe'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
394 | ret = kvm_call_hyp_nvhe(__pkvm_pviommu_attach, dev->kvm, pviommu->fd);
| ^
>> arch/x86/kvm/../../../virt/kvm/vfio.c:394:26: error: use of undeclared identifier '__pkvm_pviommu_attach'; did you mean 'kvm_vfio_pviommu_attach'?
394 | ret = kvm_call_hyp_nvhe(__pkvm_pviommu_attach, dev->kvm, pviommu->fd);
| ^~~~~~~~~~~~~~~~~~~~~
| kvm_vfio_pviommu_attach
arch/x86/kvm/../../../virt/kvm/vfio.c:376:12: note: 'kvm_vfio_pviommu_attach' declared here
376 | static int kvm_vfio_pviommu_attach(struct kvm_device *dev)
| ^
3 warnings and 3 errors generated.
vim +/kvm_call_hyp_nvhe +394 arch/x86/kvm/../../../virt/kvm/vfio.c
375
376 static int kvm_vfio_pviommu_attach(struct kvm_device *dev)
377 {
378 int ret;
379 struct kvm_pviommu *pviommu;
380
381 pviommu = kmalloc(sizeof(*pviommu), GFP_KERNEL);
382 if (!pviommu)
383 return -ENOMEM;
384
385 pviommu->dev = dev;
386
387 ret = anon_inode_getfd("kvm-pviommu", &pviommu_fops, pviommu, O_CLOEXEC);
388 if (ret < 0)
389 goto out_free;
390
391 pviommu->fd = ret;
392
393 /* Create pvIOMMU with this ID. */
> 394 ret = kvm_call_hyp_nvhe(__pkvm_pviommu_attach, dev->kvm, pviommu->fd);
395 if (ret)
396 goto out_free;
397
398 return pviommu->fd;
399 out_free:
400 kfree(pviommu);
401 return ret;
402 }
403
--
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:[~2024-12-06 6:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-06 6:10 [android-common:android15-6.6-partner_predev 23/81] arch/x86/kvm/../../../virt/kvm/vfio.c:394:8: error: call to undeclared function 'kvm_call_hyp_nvhe'; ISO C99 and later do not support implicit function declarations kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.