arch/x86/mm/numa.c:925:5: warning: no previous prototype for 'memory_add_physaddr_to_nid'

From: kbuild test robot
Date: Mon Jun 01 2020 - 04:01:48 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162
commit: 7b27a8622f802761d5c6abd6c37b22312a35343c libnvdimm/e820: Retrieve and populate correct 'target_node' info
date: 3 months ago
config: x86_64-randconfig-a003-20200601 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
git checkout 7b27a8622f802761d5c6abd6c37b22312a35343c
# save the attached .config to linux build tree
make W=1 ARCH=x86_64

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>, old ones prefixed by <<):

>> arch/x86/mm/numa.c:925:5: warning: no previous prototype for 'memory_add_physaddr_to_nid' [-Wmissing-prototypes]
925 | int memory_add_physaddr_to_nid(u64 start)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~

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@xxxxxxxxx>
:::::: CC: Dan Williams <dan.j.williams@xxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip