tree:
https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
kernel-in-vmalloc-v5.13-rc1
head: 7e5485b7d61fc97a247dc26f4888293aab05136b
commit: 63d42bff112c6522ab18d6b2484fcc29161cc6ef [7/8] ARM: Compile the kernel into
VMALLOC
config: arm-keystone_defconfig (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.g...
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.13-rc1
git checkout 63d42bff112c6522ab18d6b2484fcc29161cc6ef
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (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:59,
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:330:16: warning: cast to pointer
from integer of different size [-Wint-to-pointer-cast]
330 | (kaddr <
(void *)(KERNEL_OFFSET + KERNEL_SECTION_SIZE))) {
| ^
arch/arm/include/asm/memory.h:332:5: error: 'KERNEL_PFN_OFFSET' undeclared
(first use in this function); did you mean 'KERNEL_OFFSET'?
332 | KERNEL_PFN_OFFSET);
| ^~~~~~~~~~~~~~~~~
| KERNEL_OFFSET
arch/arm/include/asm/memory.h:332:5: note: each undeclared identifier is reported only
once for each function it appears in
--
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:59,
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:330:16: warning: cast to pointer
from integer of different size [-Wint-to-pointer-cast]
330 | (kaddr <
(void *)(KERNEL_OFFSET + KERNEL_SECTION_SIZE))) {
| ^
arch/arm/include/asm/memory.h:332:5: error: 'KERNEL_PFN_OFFSET' undeclared
(first use in this function); did you mean 'KERNEL_OFFSET'?
332 | KERNEL_PFN_OFFSET);
| ^~~~~~~~~~~~~~~~~
| KERNEL_OFFSET
arch/arm/include/asm/memory.h:332:5: note: each undeclared identifier is reported only
once for each function it appears in
make[2]: *** [scripts/Makefile.build:117: arch/arm/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1227: prepare0] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:215: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
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:59,
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:330:16: warning: cast to pointer
from integer of different size [-Wint-to-pointer-cast]
330 | (kaddr <
(void *)(KERNEL_OFFSET + KERNEL_SECTION_SIZE))) {
| ^
arch/arm/include/asm/memory.h:332:5: error: 'KERNEL_PFN_OFFSET' undeclared
(first use in this function); did you mean 'KERNEL_OFFSET'?
332 | KERNEL_PFN_OFFSET);
| ^~~~~~~~~~~~~~~~~
| KERNEL_OFFSET
arch/arm/include/asm/memory.h:332:5: note: each undeclared identifier is reported only
once for each function it appears in
make[2]: *** [scripts/Makefile.build:117: arch/arm/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1227: 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 +330 arch/arm/include/asm/memory.h
322
323 static inline unsigned long virt_to_pfn(const void *kaddr)
324 {
325 if (!IS_ENABLED(CONFIG_ARM_KERNEL_IN_VMALLOC)) {
326 return ((((unsigned long)(kaddr) - PAGE_OFFSET) >> PAGE_SHIFT) +
327 PHYS_PFN_OFFSET);
328 } else {
329 if ((kaddr >= (void *)KERNEL_OFFSET) &&
330 (kaddr < (void *)(KERNEL_OFFSET + KERNEL_SECTION_SIZE)))
{
331 return ((((unsigned long)(kaddr) - KERNEL_OFFSET) >> PAGE_SHIFT)
+
332 KERNEL_PFN_OFFSET);
333 } else {
334 return ((((unsigned long)(kaddr) - PAGE_OFFSET) >> PAGE_SHIFT) +
335 PHYS_PFN_OFFSET);
336 }
337 }
338 }
339
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org