All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [arnd-playground:headers-clean-test 16/30] include/linux/mm.h:1301:9: error: implicit declaration of function 'cpu_to_node'; did you mean 'xa_to_node'?
Date: Tue, 02 Jun 2020 20:16:20 +0800	[thread overview]
Message-ID: <202006022015.1zeIGZOT%lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git headers-clean-test
head:   a25b75e508f3199f82d682ff1c5d6968d3286581
commit: 4eaf840b05e34b4e1231e067faacdb04500efd2f [16/30] missing
config: s390-allyesconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
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
        git checkout 4eaf840b05e34b4e1231e067faacdb04500efd2f
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390 

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

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

In file included from include/linux/kvm_host.h:14,
from arch/s390/kernel/asm-offsets.c:11:
include/linux/mm.h: In function 'cpupid_to_nid':
>> include/linux/mm.h:1301:9: error: implicit declaration of function 'cpu_to_node'; did you mean 'xa_to_node'? [-Werror=implicit-function-declaration]
1301 |  return cpu_to_node(cpupid_to_cpu(cpupid));
|         ^~~~~~~~~~~
|         xa_to_node
In file included from include/linux/topology.h:36,
from include/linux/gfp.h:9,
from include/linux/skbuff.h:22,
from include/linux/if_ether.h:19,
from arch/s390/include/asm/diag.h:12,
from arch/s390/include/asm/kvm_para.h:25,
from include/uapi/linux/kvm_para.h:36,
from include/linux/kvm_para.h:5,
from include/linux/kvm_host.h:32,
from arch/s390/kernel/asm-offsets.c:11:
arch/s390/include/asm/topology.h: At top level:
>> arch/s390/include/asm/topology.h:74:21: error: static declaration of 'cpu_to_node' follows non-static declaration
74 | #define cpu_to_node cpu_to_node
|                     ^~~~~~~~~~~
>> arch/s390/include/asm/topology.h:75:19: note: in expansion of macro 'cpu_to_node'
75 | static inline int cpu_to_node(int cpu)
|                   ^~~~~~~~~~~
In file included from include/linux/kvm_host.h:14,
from arch/s390/kernel/asm-offsets.c:11:
include/linux/mm.h:1301:9: note: previous implicit declaration of 'cpu_to_node' was here
1301 |  return cpu_to_node(cpupid_to_cpu(cpupid));
|         ^~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:110: arch/s390/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1177: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2

vim +1301 include/linux/mm.h

b795854b1fa70f6 Mel Gorman     2013-10-07  1298  
90572890d202527 Peter Zijlstra 2013-10-07  1299  static inline int cpupid_to_nid(int cpupid)
b795854b1fa70f6 Mel Gorman     2013-10-07  1300  {
90572890d202527 Peter Zijlstra 2013-10-07 @1301  	return cpu_to_node(cpupid_to_cpu(cpupid));
b795854b1fa70f6 Mel Gorman     2013-10-07  1302  }
b795854b1fa70f6 Mel Gorman     2013-10-07  1303  

:::::: The code at line 1301 was first introduced by commit
:::::: 90572890d202527c366aa9489b32404e88a7c020 mm: numa: Change page last {nid,pid} into {cpu,pid}

:::::: TO: Peter Zijlstra <peterz@infradead.org>
:::::: CC: Ingo Molnar <mingo@kernel.org>

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

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

                 reply	other threads:[~2020-06-02 12:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202006022015.1zeIGZOT%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.