From: kernel test robot <lkp@intel.com>
To: Mao Han <han_mao@c-sky.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Paul Walmsley <paul.walmsley@sifive.com>
Subject: arch/riscv/kernel/perf_callchain.c:77:6: warning: no previous prototype for 'fill_callchain'
Date: Thu, 2 Jul 2020 09:55:08 +0800 [thread overview]
Message-ID: <202007020905.rIV8TzSg%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2040 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: cd77006e01b3198c75fb7819b3d0ff89709539bb
commit: dbeb90b0c1eb86a9b963b929d3c937afb7dadfa3 riscv: Add perf callchain support
date: 10 months ago
config: riscv-randconfig-r034-20200701 (attached as .config)
compiler: riscv32-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 dbeb90b0c1eb86a9b963b929d3c937afb7dadfa3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
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 >>):
In file included from include/linux/perf_event.h:25,
from arch/riscv/kernel/perf_callchain.c:4:
arch/riscv/include/asm/perf_event.h:26:2: error: #error "Please provide a valid RISCV_MAX_COUNTERS for the PMU."
26 | #error "Please provide a valid RISCV_MAX_COUNTERS for the PMU."
| ^~~~~
arch/riscv/include/asm/perf_event.h:54:28: error: 'RISCV_MAX_COUNTERS' undeclared here (not in a function); did you mean 'RISCV_BASE_COUNTERS'?
54 | struct perf_event *events[RISCV_MAX_COUNTERS];
| ^~~~~~~~~~~~~~~~~~
| RISCV_BASE_COUNTERS
>> arch/riscv/kernel/perf_callchain.c:77:6: warning: no previous prototype for 'fill_callchain' [-Wmissing-prototypes]
77 | bool fill_callchain(unsigned long pc, void *entry)
| ^~~~~~~~~~~~~~
vim +/fill_callchain +77 arch/riscv/kernel/perf_callchain.c
76
> 77 bool fill_callchain(unsigned long pc, void *entry)
78 {
79 return perf_callchain_store(entry, pc);
80 }
81
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 23519 bytes --]
reply other threads:[~2020-07-02 1:55 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=202007020905.rIV8TzSg%lkp@intel.com \
--to=lkp@intel.com \
--cc=han_mao@c-sky.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paul.walmsley@sifive.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®