Re: [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 Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



my bad due to a late change to fold in some last minute review. 
Will fix. 

On 15.02.20 05:33, kbuild test robot wrote:
> 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@xxxxxxxxx>
> 
> 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@xxxxxxxxxxxx
> 




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux