From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [linux-next:master 4066/13554] kernel/rcu/tasks.h:1022:6: warning: no previous prototype for 'show_rcu_tasks_gp_kthreads'
Date: Fri, 29 May 2020 09:51:58 +0800 [thread overview]
Message-ID: <202005290957.bP70vtyQ%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4835 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: ff387fc20c697cdc887b2abf7ef494e853795a2f
commit: e21408ceec2de5be418efa39feb1e2c00f824a72 [4066/13554] rcu-tasks: Add RCU tasks to rcutorture writer stall output
config: m68k-randconfig-s031-20200528 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-240-gf0fe1cd9-dirty
git checkout e21408ceec2de5be418efa39feb1e2c00f824a72
# save the attached .config to linux build tree
make W=1 C=1 ARCH=m68k CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from kernel/rcu/update.c:587:
kernel/rcu/tasks.h:340:6: warning: no previous prototype for 'rcu_tasks_postscan' [-Wmissing-prototypes]
340 | void rcu_tasks_postscan(void)
| ^~~~~~~~~~~~~~~~~~
kernel/rcu/tasks.h:650:6: warning: no previous prototype for 'rcu_read_unlock_trace_special' [-Wmissing-prototypes]
650 | void rcu_read_unlock_trace_special(struct task_struct *t)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/kernel.h:14,
from kernel/rcu/update.c:21:
kernel/rcu/tasks.h: In function 'trc_wait_for_one_reader':
kernel/rcu/tasks.h:765:42: error: 'rcu_tasks_trace' undeclared (first use in this function); did you mean 'rcu_tasks_rude'?
765 | if (task_curr(t) && time_after(jiffies, rcu_tasks_trace.gp_start + rcu_task_ipi_delay)) {
| ^~~~~~~~~~~~~~~
include/linux/typecheck.h:11:9: note: in definition of macro 'typecheck'
11 | typeof(x) __dummy2; | ^
kernel/rcu/tasks.h:765:22: note: in expansion of macro 'time_after'
765 | if (task_curr(t) && time_after(jiffies, rcu_tasks_trace.gp_start + rcu_task_ipi_delay)) {
| ^~~~~~~~~~
kernel/rcu/tasks.h:765:42: note: each undeclared identifier is reported only once for each function it appears in
765 | if (task_curr(t) && time_after(jiffies, rcu_tasks_trace.gp_start + rcu_task_ipi_delay)) {
| ^~~~~~~~~~~~~~~
include/linux/typecheck.h:11:9: note: in definition of macro 'typecheck'
11 | typeof(x) __dummy2; | ^
kernel/rcu/tasks.h:765:22: note: in expansion of macro 'time_after'
765 | if (task_curr(t) && time_after(jiffies, rcu_tasks_trace.gp_start + rcu_task_ipi_delay)) {
| ^~~~~~~~~~
kernel/rcu/tasks.h:765:69: error: 'rcu_task_ipi_delay' undeclared (first use in this function)
765 | if (task_curr(t) && time_after(jiffies, rcu_tasks_trace.gp_start + rcu_task_ipi_delay)) {
| ^~~~~~~~~~~~~~~~~~
include/linux/typecheck.h:11:9: note: in definition of macro 'typecheck'
11 | typeof(x) __dummy2; | ^
kernel/rcu/tasks.h:765:22: note: in expansion of macro 'time_after'
765 | if (task_curr(t) && time_after(jiffies, rcu_tasks_trace.gp_start + rcu_task_ipi_delay)) {
| ^~~~~~~~~~
include/linux/typecheck.h:12:18: warning: comparison of distinct pointer types lacks a cast
12 | (void)(&__dummy == &__dummy2); | ^~
include/linux/jiffies.h:105:3: note: in expansion of macro 'typecheck'
105 | typecheck(unsigned long, b) && | ^~~~~~~~~
kernel/rcu/tasks.h:765:22: note: in expansion of macro 'time_after'
765 | if (task_curr(t) && time_after(jiffies, rcu_tasks_trace.gp_start + rcu_task_ipi_delay)) {
| ^~~~~~~~~~
In file included from kernel/rcu/update.c:587:
kernel/rcu/tasks.h: At top level:
kernel/rcu/tasks.h:977:6: warning: no previous prototype for 'synchronize_rcu_tasks_trace' [-Wmissing-prototypes]
977 | void synchronize_rcu_tasks_trace(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from kernel/rcu/update.c:587:
kernel/rcu/tasks.h:990:6: warning: no previous prototype for 'rcu_barrier_tasks_trace' [-Wmissing-prototypes]
990 | void rcu_barrier_tasks_trace(void)
| ^~~~~~~~~~~~~~~~~~~~~~~
>> kernel/rcu/tasks.h:1022:6: warning: no previous prototype for 'show_rcu_tasks_gp_kthreads' [-Wmissing-prototypes]
1022 | void show_rcu_tasks_gp_kthreads(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/show_rcu_tasks_gp_kthreads +1022 kernel/rcu/tasks.h
1021
> 1022 void show_rcu_tasks_gp_kthreads(void)
1023 {
1024 show_rcu_tasks_classic_gp_kthread();
1025 show_rcu_tasks_rude_gp_kthread();
1026 show_rcu_tasks_trace_gp_kthread();
1027 }
1028
---
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: 19943 bytes --]
next reply other threads:[~2020-05-29 1:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-29 1:51 kbuild test robot [this message]
2020-05-29 3:05 ` [linux-next:master 4066/13554] kernel/rcu/tasks.h:1022:6: warning: no previous prototype for 'show_rcu_tasks_gp_kthreads' Paul E. McKenney
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=202005290957.bP70vtyQ%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.