[kvm:kvm-coco-queue 33/42] include/linux/kvm_host.h:2404:1: warning: no return statement in function returning non-void

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git kvm-coco-queue
head:   3428d62d5effe9bed1b9084ea8f7722761441ec0
commit: 08d58c22e8f1aa52e0732113e4af634302af9f06 [33/42] KVM: guest_memfd: add API to undo kvm_gmem_get_uninit_pfn
config: x86_64-defconfig (https://download.01.org/0day-ci/archive/20240216/202402160740.fAyQeAi2-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240216/202402160740.fAyQeAi2-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202402160740.fAyQeAi2-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

   In file included from arch/x86/events/intel/core.c:17:
   include/linux/kvm_host.h: In function 'kvm_gmem_undo_get_pfn':
>> include/linux/kvm_host.h:2404:1: warning: no return statement in function returning non-void [-Wreturn-type]
    2404 | {}
         | ^


vim +2404 include/linux/kvm_host.h

  2400	
  2401	static inline int kvm_gmem_undo_get_pfn(struct kvm *kvm,
  2402					        struct kvm_memory_slot *slot, gfn_t gfn,
  2403					        int order)
> 2404	{}
  2405	#endif /* CONFIG_KVM_PRIVATE_MEM */
  2406	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux