All of lore.kernel.org
 help / color / mirror / Atom feed
* [sean-jc:x86/gmem_inplace 30/59] arch/s390/kvm/../../../virt/kvm/kvm_main.c:2437:12: warning: 'kvm_supported_mem_attributes' defined but not used
@ 2026-06-12 11:56 kernel test robot
  2026-06-12 13:35 ` Sean Christopherson
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2026-06-12 11:56 UTC (permalink / raw)
  To: Ackerley Tng; +Cc: oe-kbuild-all, Sean Christopherson, Fuad Tabba

tree:   https://github.com/sean-jc/linux x86/gmem_inplace
head:   ee82c791cf17377ef4b741e56d41fc1e454a1c6c
commit: d2dd49c5f92f1ccb2f22e281942dfb7771e27bc2 [30/59] KVM: guest_memfd: Advertise KVM_SET_MEMORY_ATTRIBUTES2 ioctl
config: s390-randconfig-002-20260612 (https://download.01.org/0day-ci/archive/20260612/202606121943.HbEtzxip-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260612/202606121943.HbEtzxip-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/202606121943.HbEtzxip-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> arch/s390/kvm/../../../virt/kvm/kvm_main.c:2437:12: warning: 'kvm_supported_mem_attributes' defined but not used [-Wunused-function]
    static u64 kvm_supported_mem_attributes(struct kvm *kvm)
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/kvm_supported_mem_attributes +2437 arch/s390/kvm/../../../virt/kvm/kvm_main.c

  2436	
> 2437	static u64 kvm_supported_mem_attributes(struct kvm *kvm)
  2438	{
  2439	#ifdef kvm_arch_has_private_mem
  2440		if (!kvm || kvm_arch_has_private_mem(kvm))
  2441			return KVM_MEMORY_ATTRIBUTE_PRIVATE;
  2442	#endif
  2443	
  2444		return 0;
  2445	}
  2446	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-06-12 13:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-12 11:56 [sean-jc:x86/gmem_inplace 30/59] arch/s390/kvm/../../../virt/kvm/kvm_main.c:2437:12: warning: 'kvm_supported_mem_attributes' defined but not used kernel test robot
2026-06-12 13:35 ` Sean Christopherson

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.