All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Peter Fang <peter.fang@intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Xu Yilun <yilun.xu@linux.intel.com>
Subject: [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
Date: Sat, 14 Nov 2026 18:21:55 +0800	[thread overview]
Message-ID: <202611141848.b1Q0Pcxe-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-11-14 10:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202611141848.b1Q0Pcxe-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=peter.fang@intel.com \
    --cc=yilun.xu@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.