All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 3955/7588] arch/riscv/mm/init.c:485:18: error: use of undeclared identifier 'xip_pmd'
@ 2021-03-27 15:24 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-03-27 15:24 UTC (permalink / raw)
  To: Vitaly Wool
  Cc: kbuild-all, clang-built-linux, Linux Memory Management List,
	Palmer Dabbelt

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   931294922e65a23e1aad6398b9ae02df74044679
commit: 06c7c914de26c5a4f1418fd54e4dfd0be4215de6 [3955/7588] RISC-V: enable XIP
config: riscv-randconfig-r026-20210327 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d50fe9f0d6b9ee61df8830a67ea0a33c27a637e7)
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
        # install riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=06c7c914de26c5a4f1418fd54e4dfd0be4215de6
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 06c7c914de26c5a4f1418fd54e4dfd0be4215de6
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv 

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

>> arch/riscv/mm/init.c:485:18: error: use of undeclared identifier 'xip_pmd'
                              (uintptr_t)xip_pmd, PGDIR_SIZE, PAGE_TABLE);
                                         ^
>> arch/riscv/mm/init.c:489:3: error: implicit declaration of function 'create_pmd_mapping' [-Werror,-Wimplicit-function-declaration]
                   create_pmd_mapping(xip_pmd, va,
                   ^
   arch/riscv/mm/init.c:489:3: note: did you mean 'create_pgd_mapping'?
   arch/riscv/mm/init.c:360:13: note: 'create_pgd_mapping' declared here
   void __init create_pgd_mapping(pgd_t *pgdp,
               ^
   arch/riscv/mm/init.c:489:22: error: use of undeclared identifier 'xip_pmd'
                   create_pmd_mapping(xip_pmd, va,
                                      ^
   arch/riscv/mm/init.c:495:18: error: use of undeclared identifier 'xip_pmd'
                              (uintptr_t)xip_pmd, PGDIR_SIZE, PAGE_TABLE);
                                         ^
   4 errors generated.


vim +/xip_pmd +485 arch/riscv/mm/init.c

   482	
   483	#ifdef CONFIG_XIP_KERNEL
   484		create_pgd_mapping(trampoline_pg_dir, XIP_VIRT_ADDR_START,
 > 485				   (uintptr_t)xip_pmd, PGDIR_SIZE, PAGE_TABLE);
   486		for (va = XIP_VIRT_ADDR_START;
   487		     va < XIP_VIRT_ADDR_START + xiprom_sz;
   488		     va += PMD_SIZE) {
 > 489			create_pmd_mapping(xip_pmd, va,
   490					   xiprom + (va - XIP_VIRT_ADDR_START),
   491					   PMD_SIZE, PAGE_KERNEL_EXEC);
   492		}
   493	
   494		create_pgd_mapping(early_pg_dir, XIP_VIRT_ADDR_START,
   495				   (uintptr_t)xip_pmd, PGDIR_SIZE, PAGE_TABLE);
   496	#endif
   497	
   498		/*
   499		 * Setup early PGD covering entire kernel which will allows
   500		 * us to reach paging_init(). We map all memory banks later
   501		 * in setup_vm_final() below.
   502		 */
   503		end_va = PAGE_OFFSET + load_sz;
   504		for (va = PAGE_OFFSET; va < end_va; va += map_size)
   505			create_pgd_mapping(early_pg_dir, va,
   506					   load_pa + (va - PAGE_OFFSET),
   507					   map_size, PAGE_KERNEL_EXEC);
   508	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 28703 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [linux-next:master 3955/7588] arch/riscv/mm/init.c:485:18: error: use of undeclared identifier 'xip_pmd'
@ 2021-03-27 15:24 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-03-27 15:24 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   931294922e65a23e1aad6398b9ae02df74044679
commit: 06c7c914de26c5a4f1418fd54e4dfd0be4215de6 [3955/7588] RISC-V: enable XIP
config: riscv-randconfig-r026-20210327 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d50fe9f0d6b9ee61df8830a67ea0a33c27a637e7)
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
        # install riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=06c7c914de26c5a4f1418fd54e4dfd0be4215de6
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 06c7c914de26c5a4f1418fd54e4dfd0be4215de6
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv 

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

>> arch/riscv/mm/init.c:485:18: error: use of undeclared identifier 'xip_pmd'
                              (uintptr_t)xip_pmd, PGDIR_SIZE, PAGE_TABLE);
                                         ^
>> arch/riscv/mm/init.c:489:3: error: implicit declaration of function 'create_pmd_mapping' [-Werror,-Wimplicit-function-declaration]
                   create_pmd_mapping(xip_pmd, va,
                   ^
   arch/riscv/mm/init.c:489:3: note: did you mean 'create_pgd_mapping'?
   arch/riscv/mm/init.c:360:13: note: 'create_pgd_mapping' declared here
   void __init create_pgd_mapping(pgd_t *pgdp,
               ^
   arch/riscv/mm/init.c:489:22: error: use of undeclared identifier 'xip_pmd'
                   create_pmd_mapping(xip_pmd, va,
                                      ^
   arch/riscv/mm/init.c:495:18: error: use of undeclared identifier 'xip_pmd'
                              (uintptr_t)xip_pmd, PGDIR_SIZE, PAGE_TABLE);
                                         ^
   4 errors generated.


vim +/xip_pmd +485 arch/riscv/mm/init.c

   482	
   483	#ifdef CONFIG_XIP_KERNEL
   484		create_pgd_mapping(trampoline_pg_dir, XIP_VIRT_ADDR_START,
 > 485				   (uintptr_t)xip_pmd, PGDIR_SIZE, PAGE_TABLE);
   486		for (va = XIP_VIRT_ADDR_START;
   487		     va < XIP_VIRT_ADDR_START + xiprom_sz;
   488		     va += PMD_SIZE) {
 > 489			create_pmd_mapping(xip_pmd, va,
   490					   xiprom + (va - XIP_VIRT_ADDR_START),
   491					   PMD_SIZE, PAGE_KERNEL_EXEC);
   492		}
   493	
   494		create_pgd_mapping(early_pg_dir, XIP_VIRT_ADDR_START,
   495				   (uintptr_t)xip_pmd, PGDIR_SIZE, PAGE_TABLE);
   496	#endif
   497	
   498		/*
   499		 * Setup early PGD covering entire kernel which will allows
   500		 * us to reach paging_init(). We map all memory banks later
   501		 * in setup_vm_final() below.
   502		 */
   503		end_va = PAGE_OFFSET + load_sz;
   504		for (va = PAGE_OFFSET; va < end_va; va += map_size)
   505			create_pgd_mapping(early_pg_dir, va,
   506					   load_pa + (va - PAGE_OFFSET),
   507					   map_size, PAGE_KERNEL_EXEC);
   508	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 28703 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-27 15:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-27 15:24 [linux-next:master 3955/7588] arch/riscv/mm/init.c:485:18: error: use of undeclared identifier 'xip_pmd' kernel test robot
2021-03-27 15:24 ` 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.