From: kernel test robot <lkp@intel.com>
To: Mark Rutland <mark.rutland@arm.com>
Cc: oe-kbuild-all@lists.linux.dev,
Linux Memory Management List <linux-mm@kvack.org>,
"Steven Rostedt (Google)" <rostedt@goodmis.org>
Subject: [linux-next:master 6635/10565] samples/ftrace/ftrace-ops.c:15:14: sparse: sparse: symbol 'nr_function_calls' was not declared. Should it be static?
Date: Mon, 6 Feb 2023 22:29:39 +0800 [thread overview]
Message-ID: <202302062223.7F7gv80M-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 129af770823407ee115a56c69a04b440fd2fbe61
commit: b56c68f705cad0cff61fbe132c66ced2c737c65c [6635/10565] ftrace: Add sample with custom ops
config: x86_64-randconfig-s043-20230206 (https://download.01.org/0day-ci/archive/20230206/202302062223.7F7gv80M-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=b56c68f705cad0cff61fbe132c66ced2c737c65c
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout b56c68f705cad0cff61fbe132c66ced2c737c65c
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 olddefconfig
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash samples/ftrace/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> samples/ftrace/ftrace-ops.c:15:14: sparse: sparse: symbol 'nr_function_calls' was not declared. Should it be static?
>> samples/ftrace/ftrace-ops.c:24:14: sparse: sparse: symbol 'nr_ops_relevant' was not declared. Should it be static?
>> samples/ftrace/ftrace-ops.c:33:14: sparse: sparse: symbol 'nr_ops_irrelevant' was not declared. Should it be static?
>> samples/ftrace/ftrace-ops.c:45:6: sparse: sparse: symbol 'assist_recursion' was not declared. Should it be static?
>> samples/ftrace/ftrace-ops.c:49:6: sparse: sparse: symbol 'assist_rcu' was not declared. Should it be static?
>> samples/ftrace/ftrace-ops.c:117:19: sparse: sparse: symbol 'ops_relevant' was not declared. Should it be static?
>> samples/ftrace/ftrace-ops.c:118:19: sparse: sparse: symbol 'ops_irrelevant' was not declared. Should it be static?
>> samples/ftrace/ftrace-ops.c:166:15: sparse: sparse: symbol 'tracer_relevant' was not declared. Should it be static?
>> samples/ftrace/ftrace-ops.c:167:15: sparse: sparse: symbol 'tracer_irrelevant' was not declared. Should it be static?
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
reply other threads:[~2023-02-06 14:30 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=202302062223.7F7gv80M-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-mm@kvack.org \
--cc=mark.rutland@arm.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=rostedt@goodmis.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).