LKML Archive on
help / color / mirror / Atom feed
From: kernel test robot <>
To: Sean Christopherson <>
	0day robot <>
Subject: arch/x86/kvm/svm/sev.c:1924:26: error: 'nr_asids' undeclared
Date: Wed, 4 Aug 2021 05:59:03 +0800	[thread overview]
Message-ID: <> (raw)

[-- Attachment #1: Type: text/plain, Size: 1978 bytes --]

head:   793fe38a7dcd03cbb973b30601ec3d9b369bfd60
commit: 793fe38a7dcd03cbb973b30601ec3d9b369bfd60 KVM: SVM: improve the code readability for ASID management
date:   5 hours ago
config: i386-randconfig-r002-20210803 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        git remote add linux-review
        git fetch --no-tags linux-review UPDATE-20210804-005109/Mingwei-Zhang/KVM-SVM-improve-the-code-readability-for-ASID-management/20210803-021238
        git checkout 793fe38a7dcd03cbb973b30601ec3d9b369bfd60
        # save the attached .config to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/kvm/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <>

All errors (new ones prefixed by >>):

   arch/x86/kvm/svm/sev.c: In function 'sev_cpu_init':
>> arch/x86/kvm/svm/sev.c:1924:26: error: 'nr_asids' undeclared (first use in this function)
    1924 |  sd->sev_vmcbs = kcalloc(nr_asids, sizeof(void *), GFP_KERNEL);
         |                          ^~~~~~~~
   arch/x86/kvm/svm/sev.c:1924:26: note: each undeclared identifier is reported only once for each function it appears in

vim +/nr_asids +1924 arch/x86/kvm/svm/sev.c

  1919	int sev_cpu_init(struct svm_cpu_data *sd)
  1920	{
  1921		if (!sev_enabled)
  1922			return 0;
> 1924		sd->sev_vmcbs = kcalloc(nr_asids, sizeof(void *), GFP_KERNEL);
  1925		if (!sd->sev_vmcbs)
  1926			return -ENOMEM;
  1928		return 0;
  1929	}

0-DAY CI Kernel Test Service, Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33512 bytes --]

                 reply	other threads:[~2021-08-03 22:00 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:

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

  git send-email \ \ \ \ \ \
    --subject='Re: arch/x86/kvm/svm/sev.c:1924:26: error: '\''nr_asids'\'' undeclared' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).