All of lore.kernel.org
 help / color / mirror / Atom feed
* [csky-linux:riscv_compat_v2_sv48_v3_xtpbmt 20/32] arch/riscv/mm/init.c:588:6: warning: no previous prototype for function 'pt_ops_set_early'
@ 2021-12-29 13:14 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-12-29 13:14 UTC (permalink / raw)
  To: Alexandre Ghiti; +Cc: llvm, kbuild-all, linux-kernel, Guo Ren

tree:   https://github.com/c-sky/csky-linux riscv_compat_v2_sv48_v3_xtpbmt
head:   29a08e898f4e552bc0d5117b437ac3073e6ebb81
commit: 396e995ffd8ad52873006e1e8f1f6f1cd8242537 [20/32] riscv: Introduce functions to switch pt_ops
config: riscv-randconfig-r013-20211228 (https://download.01.org/0day-ci/archive/20211229/202112292145.5uDQRp8q-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project cd284b7ac0615afc6e0f1a30da2777e361de27a3)
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://github.com/c-sky/csky-linux/commit/396e995ffd8ad52873006e1e8f1f6f1cd8242537
        git remote add csky-linux https://github.com/c-sky/csky-linux
        git fetch --no-tags csky-linux riscv_compat_v2_sv48_v3_xtpbmt
        git checkout 396e995ffd8ad52873006e1e8f1f6f1cd8242537
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/mm/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> arch/riscv/mm/init.c:588:6: warning: no previous prototype for function 'pt_ops_set_early' [-Wmissing-prototypes]
   void pt_ops_set_early(void)
        ^
   arch/riscv/mm/init.c:588:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void pt_ops_set_early(void)
   ^
   static 
>> arch/riscv/mm/init.c:606:6: warning: no previous prototype for function 'pt_ops_set_fixmap' [-Wmissing-prototypes]
   void pt_ops_set_fixmap(void)
        ^
   arch/riscv/mm/init.c:606:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void pt_ops_set_fixmap(void)
   ^
   static 
>> arch/riscv/mm/init.c:620:6: warning: no previous prototype for function 'pt_ops_set_late' [-Wmissing-prototypes]
   void pt_ops_set_late(void)
        ^
   arch/riscv/mm/init.c:620:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void pt_ops_set_late(void)
   ^
   static 
   3 warnings generated.


vim +/pt_ops_set_early +588 arch/riscv/mm/init.c

   583	
   584	/*
   585	 * MMU is not enabled, the page tables are allocated directly using
   586	 * early_pmd/pud/p4d and the address returned is the physical one.
   587	 */
 > 588	void pt_ops_set_early(void)
   589	{
   590		pt_ops.alloc_pte = alloc_pte_early;
   591		pt_ops.get_pte_virt = get_pte_virt_early;
   592	#ifndef __PAGETABLE_PMD_FOLDED
   593		pt_ops.alloc_pmd = alloc_pmd_early;
   594		pt_ops.get_pmd_virt = get_pmd_virt_early;
   595	#endif
   596	}
   597	
   598	/*
   599	 * MMU is enabled but page table setup is not complete yet.
   600	 * fixmap page table alloc functions must be used as a means to temporarily
   601	 * map the allocated physical pages since the linear mapping does not exist yet.
   602	 *
   603	 * Note that this is called with MMU disabled, hence kernel_mapping_pa_to_va,
   604	 * but it will be used as described above.
   605	 */
 > 606	void pt_ops_set_fixmap(void)
   607	{
   608		pt_ops.alloc_pte = kernel_mapping_pa_to_va((uintptr_t)alloc_pte_fixmap);
   609		pt_ops.get_pte_virt = kernel_mapping_pa_to_va((uintptr_t)get_pte_virt_fixmap);
   610	#ifndef __PAGETABLE_PMD_FOLDED
   611		pt_ops.alloc_pmd = kernel_mapping_pa_to_va((uintptr_t)alloc_pmd_fixmap);
   612		pt_ops.get_pmd_virt = kernel_mapping_pa_to_va((uintptr_t)get_pmd_virt_fixmap);
   613	#endif
   614	}
   615	
   616	/*
   617	 * MMU is enabled and page table setup is complete, so from now, we can use
   618	 * generic page allocation functions to setup page table.
   619	 */
 > 620	void pt_ops_set_late(void)
   621	{
   622		pt_ops.alloc_pte = alloc_pte_late;
   623		pt_ops.get_pte_virt = get_pte_virt_late;
   624	#ifndef __PAGETABLE_PMD_FOLDED
   625		pt_ops.alloc_pmd = alloc_pmd_late;
   626		pt_ops.get_pmd_virt = get_pmd_virt_late;
   627	#endif
   628	}
   629	

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

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

* [csky-linux:riscv_compat_v2_sv48_v3_xtpbmt 20/32] arch/riscv/mm/init.c:588:6: warning: no previous prototype for function 'pt_ops_set_early'
@ 2021-12-29 13:14 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-12-29 13:14 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/c-sky/csky-linux riscv_compat_v2_sv48_v3_xtpbmt
head:   29a08e898f4e552bc0d5117b437ac3073e6ebb81
commit: 396e995ffd8ad52873006e1e8f1f6f1cd8242537 [20/32] riscv: Introduce functions to switch pt_ops
config: riscv-randconfig-r013-20211228 (https://download.01.org/0day-ci/archive/20211229/202112292145.5uDQRp8q-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project cd284b7ac0615afc6e0f1a30da2777e361de27a3)
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://github.com/c-sky/csky-linux/commit/396e995ffd8ad52873006e1e8f1f6f1cd8242537
        git remote add csky-linux https://github.com/c-sky/csky-linux
        git fetch --no-tags csky-linux riscv_compat_v2_sv48_v3_xtpbmt
        git checkout 396e995ffd8ad52873006e1e8f1f6f1cd8242537
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/mm/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> arch/riscv/mm/init.c:588:6: warning: no previous prototype for function 'pt_ops_set_early' [-Wmissing-prototypes]
   void pt_ops_set_early(void)
        ^
   arch/riscv/mm/init.c:588:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void pt_ops_set_early(void)
   ^
   static 
>> arch/riscv/mm/init.c:606:6: warning: no previous prototype for function 'pt_ops_set_fixmap' [-Wmissing-prototypes]
   void pt_ops_set_fixmap(void)
        ^
   arch/riscv/mm/init.c:606:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void pt_ops_set_fixmap(void)
   ^
   static 
>> arch/riscv/mm/init.c:620:6: warning: no previous prototype for function 'pt_ops_set_late' [-Wmissing-prototypes]
   void pt_ops_set_late(void)
        ^
   arch/riscv/mm/init.c:620:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void pt_ops_set_late(void)
   ^
   static 
   3 warnings generated.


vim +/pt_ops_set_early +588 arch/riscv/mm/init.c

   583	
   584	/*
   585	 * MMU is not enabled, the page tables are allocated directly using
   586	 * early_pmd/pud/p4d and the address returned is the physical one.
   587	 */
 > 588	void pt_ops_set_early(void)
   589	{
   590		pt_ops.alloc_pte = alloc_pte_early;
   591		pt_ops.get_pte_virt = get_pte_virt_early;
   592	#ifndef __PAGETABLE_PMD_FOLDED
   593		pt_ops.alloc_pmd = alloc_pmd_early;
   594		pt_ops.get_pmd_virt = get_pmd_virt_early;
   595	#endif
   596	}
   597	
   598	/*
   599	 * MMU is enabled but page table setup is not complete yet.
   600	 * fixmap page table alloc functions must be used as a means to temporarily
   601	 * map the allocated physical pages since the linear mapping does not exist yet.
   602	 *
   603	 * Note that this is called with MMU disabled, hence kernel_mapping_pa_to_va,
   604	 * but it will be used as described above.
   605	 */
 > 606	void pt_ops_set_fixmap(void)
   607	{
   608		pt_ops.alloc_pte = kernel_mapping_pa_to_va((uintptr_t)alloc_pte_fixmap);
   609		pt_ops.get_pte_virt = kernel_mapping_pa_to_va((uintptr_t)get_pte_virt_fixmap);
   610	#ifndef __PAGETABLE_PMD_FOLDED
   611		pt_ops.alloc_pmd = kernel_mapping_pa_to_va((uintptr_t)alloc_pmd_fixmap);
   612		pt_ops.get_pmd_virt = kernel_mapping_pa_to_va((uintptr_t)get_pmd_virt_fixmap);
   613	#endif
   614	}
   615	
   616	/*
   617	 * MMU is enabled and page table setup is complete, so from now, we can use
   618	 * generic page allocation functions to setup page table.
   619	 */
 > 620	void pt_ops_set_late(void)
   621	{
   622		pt_ops.alloc_pte = alloc_pte_late;
   623		pt_ops.get_pte_virt = get_pte_virt_late;
   624	#ifndef __PAGETABLE_PMD_FOLDED
   625		pt_ops.alloc_pmd = alloc_pmd_late;
   626		pt_ops.get_pmd_virt = get_pmd_virt_late;
   627	#endif
   628	}
   629	

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

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

end of thread, other threads:[~2021-12-29 13:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-29 13:14 [csky-linux:riscv_compat_v2_sv48_v3_xtpbmt 20/32] arch/riscv/mm/init.c:588:6: warning: no previous prototype for function 'pt_ops_set_early' kernel test robot
2021-12-29 13:14 ` 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.