[kvm:kvm-coco-queue 33/42] include/linux/kvm_host.h:2404:2: warning: non-void function does not return a value

kernel test robot
2024-02-15T23:17:27Z

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-allnoconfig (https://download.01.org/0day-ci/archive/20240216/202402160743.povFwG5c-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240216/202402160743.povFwG5c-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/202402160743.povFwG5c-lkp@intel.com/

All warnings (new ones prefixed by >>):

In file included from arch/x86/events/intel/core.c:17:
>> include/linux/kvm_host.h:2404:2: warning: non-void function does not return a value [-Wreturn-type]
2404 | {}
| ^
1 warning generated.

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