linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* arch/x86/kvm/svm/sev.c:1924:26: error: 'nr_asids' undeclared
@ 2021-08-03 21:59 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-03 21:59 UTC (permalink / raw)
  To: Sean Christopherson; +Cc: kbuild-all, linux-kernel, 0day robot

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-03 22:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-03 21:59 arch/x86/kvm/svm/sev.c:1924:26: error: 'nr_asids' undeclared kernel test robot

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).