From: kbuild test robot <fengguang.wu@intel.com>
To: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org
Subject: [rcu:rcu/next 55/57] kernel/rcu/rcutorture.c:594:2: note: in expansion of macro 'pr_alert'
Date: Sun, 26 Mar 2017 08:10:06 +0800 [thread overview]
Message-ID: <201703260802.IZn1xCLd%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4769 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next
head: cfc71fb0749122b29a70646a9a9522003418e5dc
commit: 7cf53ca0469972c1b953b68eb6a42e5d4fe75ef4 [55/57] srcutorture: Print Tiny SRCU reader statistics
config: x86_64-randconfig-x009-201713 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 7cf53ca0469972c1b953b68eb6a42e5d4fe75ef4
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
In file included from include/linux/printk.h:6:0,
from include/linux/kernel.h:13,
from kernel/rcu/rcutorture.c:26:
kernel/rcu/rcutorture.c: In function 'srcu_torture_stats':
>> include/linux/kern_levels.h:4:18: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'int' [-Wformat=]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:8:20: note: in expansion of macro 'KERN_SOH'
#define KERN_ALERT KERN_SOH "1" /* action must be taken immediately */
^~~~~~~~
>> include/linux/printk.h:297:9: note: in expansion of macro 'KERN_ALERT'
printk(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~
>> kernel/rcu/rcutorture.c:594:2: note: in expansion of macro 'pr_alert'
pr_alert("%s%s Tiny SRCU per-CPU(idx=%d): (%ld,%ld)\n",
^~~~~~~~
include/linux/kern_levels.h:4:18: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'int' [-Wformat=]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:8:20: note: in expansion of macro 'KERN_SOH'
#define KERN_ALERT KERN_SOH "1" /* action must be taken immediately */
^~~~~~~~
>> include/linux/printk.h:297:9: note: in expansion of macro 'KERN_ALERT'
printk(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~
>> kernel/rcu/rcutorture.c:594:2: note: in expansion of macro 'pr_alert'
pr_alert("%s%s Tiny SRCU per-CPU(idx=%d): (%ld,%ld)\n",
^~~~~~~~
--
In file included from include/linux/printk.h:6:0,
from include/linux/kernel.h:13,
from kernel//rcu/rcutorture.c:26:
kernel//rcu/rcutorture.c: In function 'srcu_torture_stats':
>> include/linux/kern_levels.h:4:18: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'int' [-Wformat=]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:8:20: note: in expansion of macro 'KERN_SOH'
#define KERN_ALERT KERN_SOH "1" /* action must be taken immediately */
^~~~~~~~
>> include/linux/printk.h:297:9: note: in expansion of macro 'KERN_ALERT'
printk(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~
kernel//rcu/rcutorture.c:594:2: note: in expansion of macro 'pr_alert'
pr_alert("%s%s Tiny SRCU per-CPU(idx=%d): (%ld,%ld)\n",
^~~~~~~~
include/linux/kern_levels.h:4:18: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'int' [-Wformat=]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:8:20: note: in expansion of macro 'KERN_SOH'
#define KERN_ALERT KERN_SOH "1" /* action must be taken immediately */
^~~~~~~~
>> include/linux/printk.h:297:9: note: in expansion of macro 'KERN_ALERT'
printk(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~
kernel//rcu/rcutorture.c:594:2: note: in expansion of macro 'pr_alert'
pr_alert("%s%s Tiny SRCU per-CPU(idx=%d): (%ld,%ld)\n",
^~~~~~~~
vim +/pr_alert +594 kernel/rcu/rcutorture.c
578 /*
579 * Make sure that a lock is always counted if the corresponding
580 * unlock is counted.
581 */
582 smp_rmb();
583
584 l0 = counts->lock_count[!idx];
585 l1 = counts->lock_count[idx];
586
587 c0 = l0 - u0;
588 c1 = l1 - u1;
589 pr_cont(" %d(%ld,%ld)", cpu, c0, c1);
590 }
591 pr_cont("\n");
592 #elif defined(CONFIG_TINY_SRCU)
593 idx = READ_ONCE(srcu_ctlp->srcu_idx) & 0x1;
> 594 pr_alert("%s%s Tiny SRCU per-CPU(idx=%d): (%ld,%ld)\n",
595 torture_type, TORTURE_FLAG, idx,
596 READ_ONCE(srcu_ctlp->srcu_lock_nesting[!idx]),
597 READ_ONCE(srcu_ctlp->srcu_lock_nesting[idx]));
598 #endif
599 }
600
601 static void srcu_torture_synchronize_expedited(void)
602 {
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 28915 bytes --]
reply other threads:[~2017-03-26 0:10 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=201703260802.IZn1xCLd%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paulmck@linux.vnet.ibm.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®