All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: arch/x86/kvm/svm/sev.c:1924:26: error: 'nr_asids' undeclared
Date: Wed, 04 Aug 2021 05:59:03 +0800	[thread overview]
Message-ID: <202108040557.HA5jjvmc-lkp@intel.com> (raw)

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

tree:   https://github.com/0day-ci/linux/commits/UPDATE-20210804-005109/Mingwei-Zhang/KVM-SVM-improve-the-code-readability-for-ASID-management/20210803-021238
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):
        # https://github.com/0day-ci/linux/commit/793fe38a7dcd03cbb973b30601ec3d9b369bfd60
        git remote add linux-review https://github.com/0day-ci/linux
        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 <lkp@intel.com>

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

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

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Sean Christopherson <seanjc@google.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	0day robot <lkp@intel.com>
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: <202108040557.HA5jjvmc-lkp@intel.com> (raw)

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

tree:   https://github.com/0day-ci/linux/commits/UPDATE-20210804-005109/Mingwei-Zhang/KVM-SVM-improve-the-code-readability-for-ASID-management/20210803-021238
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):
        # https://github.com/0day-ci/linux/commit/793fe38a7dcd03cbb973b30601ec3d9b369bfd60
        git remote add linux-review https://github.com/0day-ci/linux
        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 <lkp@intel.com>

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

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

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

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

             reply	other threads:[~2021-08-03 21:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-03 21:59 kernel test robot [this message]
2021-08-03 21:59 ` arch/x86/kvm/svm/sev.c:1924:26: error: 'nr_asids' undeclared kernel test robot

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=202108040557.HA5jjvmc-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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.