[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202205210032.d4z7zZwl-lkp@intel.com>
Date: Sat, 21 May 2022 00:29:28 +0800
From: kernel test robot <lkp@...el.com>
To: Linus Walleij <linus.walleij@...aro.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [arm-integrator:kernel-in-vmalloc-v5.18-rc1 8/16]
arch/arm/include/asm/memory.h:333:33: error: 'KERNEL_PFN_OFFSET' undeclared;
did you mean 'KERNEL_OFFSET'?
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v5.18-rc1
head: b9b1d325d83c15b2e27bfa8635f99a7d20811457
commit: 16d1427dc6f44107571afbf96254956716c9ad1f [8/16] ARM: Compile the kernel into VMALLOC
config: arm-stm32_defconfig (https://download.01.org/0day-ci/archive/20220521/202205210032.d4z7zZwl-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.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=16d1427dc6f44107571afbf96254956716c9ad1f
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.18-rc1
git checkout 16d1427dc6f44107571afbf96254956716c9ad1f
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arm prepare
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
In file included from arch/arm/include/asm/page.h:163,
from arch/arm/include/asm/thread_info.h:14,
from include/linux/thread_info.h:60,
from include/asm-generic/preempt.h:5,
from ./arch/arm/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/rcupdate.h:27,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
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:333:33: error: 'KERNEL_PFN_OFFSET' undeclared (first use in this function); did you mean 'KERNEL_OFFSET'?
333 | KERNEL_PFN_OFFSET);
| ^~~~~~~~~~~~~~~~~
| KERNEL_OFFSET
arch/arm/include/asm/memory.h:333:33: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [scripts/Makefile.build:120: arch/arm/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1194: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:219: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +333 arch/arm/include/asm/memory.h
322
323 static inline unsigned long virt_to_pfn(const void *p)
324 {
325 unsigned long kaddr = (unsigned long)p;
326 if (!IS_ENABLED(CONFIG_ARM_KERNEL_IN_VMALLOC)) {
327 return (((kaddr - PAGE_OFFSET) >> PAGE_SHIFT) +
328 PHYS_PFN_OFFSET);
329 } else {
330 if ((kaddr >= KERNEL_OFFSET) &&
331 (kaddr < (KERNEL_OFFSET + KERNEL_SECTION_SIZE))) {
332 return (((kaddr - KERNEL_OFFSET) >> PAGE_SHIFT) +
> 333 KERNEL_PFN_OFFSET);
334 } else {
335 return (((kaddr - PAGE_OFFSET) >> PAGE_SHIFT) +
336 PHYS_PFN_OFFSET);
337 }
338 }
339 }
340
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists