Messages in this thread |  | | Date | Sun, 26 Jul 2020 04:47:31 +0800 | From | kernel test robot <> | Subject | arch/x86/mm/numa.c:925:5: warning: no previous prototype for function 'memory_add_physaddr_to_nid' |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 23ee3e4e5bd27bdbc0f1785eef7209ce872794c7 commit: 7b27a8622f802761d5c6abd6c37b22312a35343c libnvdimm/e820: Retrieve and populate correct 'target_node' info date: 5 months ago config: x86_64-randconfig-a006-20200726 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 8bf4c1f4fb257774f66c8cda07adc6c5e8668326) 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 x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu git checkout 7b27a8622f802761d5c6abd6c37b22312a35343c # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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/x86/mm/numa.c:925:5: warning: no previous prototype for function 'memory_add_physaddr_to_nid' [-Wmissing-prototypes] int memory_add_physaddr_to_nid(u64 start) ^ arch/x86/mm/numa.c:925:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int memory_add_physaddr_to_nid(u64 start) ^ static 1 warning generated.
vim +/memory_add_physaddr_to_nid +925 arch/x86/mm/numa.c
5d30f92e763128 Dan Williams 2020-02-16 924 5d30f92e763128 Dan Williams 2020-02-16 @925 int memory_add_physaddr_to_nid(u64 start)
:::::: The code at line 925 was first introduced by commit :::::: 5d30f92e7631286b8617777c5400c8eadcae50a1 x86/NUMA: Provide a range-to-target_node lookup facility
:::::: TO: Dan Williams <dan.j.williams@intel.com> :::::: CC: Dan Williams <dan.j.williams@intel.com>
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [unhandled content-type:application/gzip] |  |