From: kbuild test robot <lkp@intel.com>
To: Vasily Gorbik <gor@linux.ibm.com>
Cc: kbuild-all@lists.01.org, linux-s390@vger.kernel.org,
Christian Borntraeger <borntraeger@de.ibm.com>,
Cornelia Huck <cohuck@redhat.com>, Thomas Huth <thuth@redhat.com>
Subject: [kvms390:pv_worktree 5/40] arch/s390/kernel/setup.c:563:6: error: 'prot_virt_host' undeclared; did you mean 'is_prot_virt_host'?
Date: Sat, 15 Feb 2020 12:33:16 +0800 [thread overview]
Message-ID: <202002151214.QFguG3zT%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3652 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux.git pv_worktree
head: 6a8cbdf8a1bdd3a4dff307780f9c00eeb2300adb
commit: 76f352baed9166481516cfaf88968883635b931c [5/40] s390/protvirt: add ultravisor initialization
config: s390-zfcpdump_defconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 76f352baed9166481516cfaf88968883635b931c
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
arch/s390/kernel/setup.c: In function 'setup_memory_end':
>> arch/s390/kernel/setup.c:563:6: error: 'prot_virt_host' undeclared (first use in this function); did you mean 'is_prot_virt_host'?
if (prot_virt_host)
^~~~~~~~~~~~~~
is_prot_virt_host
arch/s390/kernel/setup.c:563:6: note: each undeclared identifier is reported only once for each function it appears in
arch/s390/kernel/setup.c: In function 'setup_arch':
arch/s390/kernel/setup.c:1140:6: error: 'prot_virt_host' undeclared (first use in this function); did you mean 'is_prot_virt_host'?
if (prot_virt_host)
^~~~~~~~~~~~~~
is_prot_virt_host
vim +563 arch/s390/kernel/setup.c
544
545 static void __init setup_memory_end(void)
546 {
547 unsigned long vmax, tmp;
548
549 /* Choose kernel address space layout: 3 or 4 levels. */
550 if (IS_ENABLED(CONFIG_KASAN)) {
551 vmax = IS_ENABLED(CONFIG_KASAN_S390_4_LEVEL_PAGING)
552 ? _REGION1_SIZE
553 : _REGION2_SIZE;
554 } else {
555 tmp = (memory_end ?: max_physmem_end) / PAGE_SIZE;
556 tmp = tmp * (sizeof(struct page) + PAGE_SIZE);
557 if (tmp + vmalloc_size + MODULES_LEN <= _REGION2_SIZE)
558 vmax = _REGION2_SIZE; /* 3-level kernel page table */
559 else
560 vmax = _REGION1_SIZE; /* 4-level kernel page table */
561 }
562
> 563 if (prot_virt_host)
564 adjust_to_uv_max(&vmax);
565
566 /* module area is at the end of the kernel address space. */
567 MODULES_END = vmax;
568 MODULES_VADDR = MODULES_END - MODULES_LEN;
569 VMALLOC_END = MODULES_VADDR;
570 VMALLOC_START = VMALLOC_END - vmalloc_size;
571
572 /* Split remaining virtual space between 1:1 mapping & vmemmap array */
573 tmp = VMALLOC_START / (PAGE_SIZE + sizeof(struct page));
574 /* vmemmap contains a multiple of PAGES_PER_SECTION struct pages */
575 tmp = SECTION_ALIGN_UP(tmp);
576 tmp = VMALLOC_START - tmp * sizeof(struct page);
577 tmp &= ~((vmax >> 11) - 1); /* align to page table level */
578 tmp = min(tmp, 1UL << MAX_PHYSMEM_BITS);
579 vmemmap = (struct page *) tmp;
580
581 /* Take care that memory_end is set and <= vmemmap */
582 memory_end = min(memory_end ?: max_physmem_end, (unsigned long)vmemmap);
583 #ifdef CONFIG_KASAN
584 /* fit in kasan shadow memory region between 1:1 and vmemmap */
585 memory_end = min(memory_end, KASAN_SHADOW_START);
586 vmemmap = max(vmemmap, (struct page *)KASAN_SHADOW_END);
587 #endif
588 max_pfn = max_low_pfn = PFN_DOWN(memory_end);
589 memblock_remove(memory_end, ULONG_MAX);
590
591 pr_notice("The maximum memory size is %luMB\n", memory_end >> 20);
592 }
593
---
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: 7930 bytes --]
next reply other threads:[~2020-02-15 4:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-15 4:33 kbuild test robot [this message]
2020-02-17 7:55 ` [kvms390:pv_worktree 5/40] arch/s390/kernel/setup.c:563:6: error: 'prot_virt_host' undeclared; did you mean 'is_prot_virt_host'? Christian Borntraeger
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=202002151214.QFguG3zT%lkp@intel.com \
--to=lkp@intel.com \
--cc=borntraeger@de.ibm.com \
--cc=cohuck@redhat.com \
--cc=gor@linux.ibm.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-s390@vger.kernel.org \
--cc=thuth@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox