All of lore.kernel.org
 help / color / mirror / Atom feed
* [arm-integrator:kernel-in-vmalloc-v5.12-rc1 6/6] arch/arm/include/asm/memory.h:338:41: error: 'KERNEL_SIZE' undeclared
@ 2021-04-13  5:55 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-13  5:55 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v5.12-rc1
head:   7b99ca2d1494c9431f36164db472b70852ad9bf6
commit: 7b99ca2d1494c9431f36164db472b70852ad9bf6 [6/6] ARM: kernel in vmalloc
config: arm-randconfig-r015-20210413 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git/commit/?id=7b99ca2d1494c9431f36164db472b70852ad9bf6
        git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
        git fetch --no-tags arm-integrator kernel-in-vmalloc-v5.12-rc1
        git checkout 7b99ca2d1494c9431f36164db472b70852ad9bf6
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 

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

   In file included from arch/arm/include/asm/page.h:160,
                    from arch/arm/include/asm/thread_info.h:14,
                    from include/linux/thread_info.h:58,
                    from include/asm-generic/current.h:5,
                    from ./arch/arm/include/generated/asm/current.h:1,
                    from include/linux/sched.h:12,
                    from arch/arm/kernel/asm-offsets.c:11:
   arch/arm/include/asm/memory.h: In function 'virt_to_pfn':
>> arch/arm/include/asm/memory.h:338:41: error: 'KERNEL_SIZE' undeclared (first use in this function)
     338 |       (kaddr < (void *)(KERNEL_OFFSET + KERNEL_SIZE))) {
         |                                         ^~~~~~~~~~~
   arch/arm/include/asm/memory.h:338:41: note: each undeclared identifier is reported only once for each function it appears in
>> arch/arm/include/asm/memory.h:340:5: error: 'KERNEL_PFN_OFFSET' undeclared (first use in this function); did you mean 'KERNEL_OFFSET'?
     340 |     KERNEL_PFN_OFFSET);
         |     ^~~~~~~~~~~~~~~~~
         |     KERNEL_OFFSET
--
   In file included from arch/arm/include/asm/page.h:160,
                    from arch/arm/include/asm/thread_info.h:14,
                    from include/linux/thread_info.h:58,
                    from include/asm-generic/current.h:5,
                    from ./arch/arm/include/generated/asm/current.h:1,
                    from include/linux/sched.h:12,
                    from arch/arm/kernel/asm-offsets.c:11:
   arch/arm/include/asm/memory.h: In function 'virt_to_pfn':
>> arch/arm/include/asm/memory.h:338:41: error: 'KERNEL_SIZE' undeclared (first use in this function)
     338 |       (kaddr < (void *)(KERNEL_OFFSET + KERNEL_SIZE))) {
         |                                         ^~~~~~~~~~~
   arch/arm/include/asm/memory.h:338:41: note: each undeclared identifier is reported only once for each function it appears in
>> arch/arm/include/asm/memory.h:340:5: error: 'KERNEL_PFN_OFFSET' undeclared (first use in this function); did you mean 'KERNEL_OFFSET'?
     340 |     KERNEL_PFN_OFFSET);
         |     ^~~~~~~~~~~~~~~~~
         |     KERNEL_OFFSET
   make[2]: *** [scripts/Makefile.build:116: arch/arm/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1233: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:215: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +/KERNEL_SIZE +338 arch/arm/include/asm/memory.h

   330	
   331	static inline unsigned long virt_to_pfn(const void *kaddr)
   332	{
   333		if (!IS_ENABLED(CONFIG_ARM_KERNEL_IN_VMALLOC)) {
   334			return ((((unsigned long)(kaddr) - PAGE_OFFSET) >> PAGE_SHIFT) +
   335				PHYS_PFN_OFFSET);
   336		} else {
   337			if ((kaddr >= (void *)KERNEL_OFFSET) &&
 > 338			    (kaddr < (void *)(KERNEL_OFFSET + KERNEL_SIZE))) {
   339				return ((((unsigned long)(kaddr) - KERNEL_OFFSET) >> PAGE_SHIFT) +
 > 340					KERNEL_PFN_OFFSET);
   341			} else {
   342				return ((((unsigned long)(kaddr) - PAGE_OFFSET) >> PAGE_SHIFT) +
   343					PHYS_PFN_OFFSET);
   344			}
   345		}
   346	}
   347	

---
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: 40617 bytes --]

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

only message in thread, other threads:[~2021-04-13  5:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-13  5:55 [arm-integrator:kernel-in-vmalloc-v5.12-rc1 6/6] arch/arm/include/asm/memory.h:338:41: error: 'KERNEL_SIZE' undeclared kernel test robot

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.