lkml.org 
[lkml]   [2022]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[arm-integrator:kernel-in-vmalloc-v5.18-rc1 8/9] 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: 67a8d6eb3d015908f35d6091c02f17d7c3b55bf3
commit: 52cbc963c5c9daba74109e9782e3487cdf48fe5c [8/9] ARM: Compile the kernel into VMALLOC
config: arm-lpc18xx_defconfig (https://download.01.org/0day-ci/archive/20220518/202205180458.0iXDsFhX-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=52cbc963c5c9daba74109e9782e3487cdf48fe5c
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 52cbc963c5c9daba74109e9782e3487cdf48fe5c
# 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 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: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

\
 
 \ /
  Last update: 2022-05-17 22:29    [W:0.041 / U:0.572 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site