All of lore.kernel.org
 help / color / mirror / Atom feed
* [intel-tdx:tdx-module-ext 20/21] arch/x86/kvm/vmx/tdx.c:1659:7: error: call to undeclared function 'kvm_range_has_vm_memory_attributes'; ISO C99 and later do not support implicit function declarations
@ 2026-11-14 10:21 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-14 10:21 UTC (permalink / raw)
  To: Peter Fang; +Cc: llvm, oe-kbuild-all, Xu Yilun

tree:   https://github.com/intel/tdx.git tdx-module-ext
head:   3ed76ae19ed58ea4ef8a5d849dbc75a1de082a2d
commit: 160e84c531a3459ec04ef06b5670096e1671e257 [20/21] KVM: TDX: Add in-kernel Quote generation
config: x86_64-randconfig-1011-20261114 (https://download.01.org/0day-ci/archive/20261114/202611141848.b1Q0Pcxe-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261114/202611141848.b1Q0Pcxe-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/202611141848.b1Q0Pcxe-lkp@intel.com/

All errors (new ones prefixed by >>):

>> arch/x86/kvm/vmx/tdx.c:1659:7: error: call to undeclared function 'kvm_range_has_vm_memory_attributes'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1659 |         if (!kvm_range_has_vm_memory_attributes(vcpu->kvm, gfn_start, gfn_end,
         |              ^
   1 error generated.


vim +/kvm_range_has_vm_memory_attributes +1659 arch/x86/kvm/vmx/tdx.c

  1637	
  1638	static u64 tdx_get_quote_check_args(struct kvm_vcpu *vcpu, u64 gpa, u64 size)
  1639	{
  1640		gfn_t gfn_start, gfn_end;
  1641		u64 end;
  1642	
  1643		if (!size)
  1644			return TDVMCALL_STATUS_INVALID_OPERAND;
  1645	
  1646		if (!PAGE_ALIGNED(gpa) || !PAGE_ALIGNED(size))
  1647			return TDVMCALL_STATUS_ALIGN_ERROR;
  1648	
  1649		if (check_add_overflow(gpa, size, &end))
  1650			return TDVMCALL_STATUS_INVALID_OPERAND;
  1651	
  1652		gfn_start = gpa_to_gfn(gpa);
  1653		gfn_end = gpa_to_gfn(end);
  1654	
  1655		/*
  1656		 * Reject if the guest didn't explicitly convert its quote pages to
  1657		 * shared.
  1658		 */
> 1659		if (!kvm_range_has_vm_memory_attributes(vcpu->kvm, gfn_start, gfn_end,
  1660							KVM_MEMORY_ATTRIBUTE_PRIVATE, 0))
  1661			return TDVMCALL_STATUS_INVALID_OPERAND;
  1662	
  1663		return TDVMCALL_STATUS_SUCCESS;
  1664	}
  1665	

--
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:[~2026-11-14 10:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-14 10:21 [intel-tdx:tdx-module-ext 20/21] arch/x86/kvm/vmx/tdx.c:1659:7: error: call to undeclared function 'kvm_range_has_vm_memory_attributes'; 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.