Messages in this thread | | | Date | Wed, 10 Aug 2022 11:46:09 +0800 | From | kernel test robot <> | Subject | [rmk-arm:ktext 13/19] arch/arm64/mm/mmu.c:737:13: warning: no previous prototype for function 'create_kernel_nid_map' |
| |
tree: git://git.armlinux.org.uk/~rmk/linux-arm ktext head: 9065be4a87799659473e7d135f6db3f7419a7553 commit: 2154e376802fd896345339e0940fca399b893515 [13/19] arm64: text replication: setup page tables for copied kernel config: arm64-randconfig-r004-20220810 (https://download.01.org/0day-ci/archive/20220810/202208101140.WHKcrIlq-lkp@intel.com/config) compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 5f1c7e2cc5a3c07cbc2412e851a7283c1841f520) 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 arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu git remote add rmk-arm git://git.armlinux.org.uk/~rmk/linux-arm git fetch --no-tags rmk-arm ktext git checkout 2154e376802fd896345339e0940fca399b893515 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/mm/
If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> arch/arm64/mm/mmu.c:737:13: warning: no previous prototype for function 'create_kernel_nid_map' [-Wmissing-prototypes] void __init create_kernel_nid_map(pgd_t *pgdp, void *ktext) ^ arch/arm64/mm/mmu.c:737:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void __init create_kernel_nid_map(pgd_t *pgdp, void *ktext) ^ static 1 warning generated.
vim +/create_kernel_nid_map +737 arch/arm64/mm/mmu.c
736 > 737 void __init create_kernel_nid_map(pgd_t *pgdp, void *ktext) 738 { 739 pgprot_t text_prot = kernel_text_pgprot(); 740 741 create_kernel_mapping(pgdp, __pa(ktext), _stext, _etext, text_prot, 0); 742 create_kernel_mapping(pgdp, __pa_symbol(__start_rodata), 743 __start_rodata, __inittext_begin, 744 PAGE_KERNEL, NO_CONT_MAPPINGS); 745 create_kernel_mapping(pgdp, __pa_symbol(__inittext_begin), 746 __inittext_begin, __inittext_end, 747 text_prot, 0); 748 create_kernel_mapping(pgdp, __pa_symbol(__initdata_begin), 749 __initdata_begin, __initdata_end, 750 PAGE_KERNEL, 0); 751 create_kernel_mapping(pgdp, __pa_symbol(_data), _data, _end, 752 PAGE_KERNEL, 0); 753 } 754
-- 0-DAY CI Kernel Test Service https://01.org/lkp
| |