Messages in this thread | | | Date | Sun, 26 Mar 2017 09:11:52 +0800 | From | kbuild test robot <> | Subject | [rcu:rcu/next 55/57] include/linux/printk.h:297:35: note: in expansion of macro 'READ_ONCE' |
| |
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: xtensa-allmodconfig (attached as .config) compiler: xtensa-linux-gcc (GCC) 4.9.0 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 7cf53ca0469972c1b953b68eb6a42e5d4fe75ef4 # save the attached .config to linux build tree make.cross ARCH=xtensa
All warnings (new ones prefixed by >>):
In file included from include/uapi/linux/stddef.h:1:0, from include/linux/stddef.h:4, from include/uapi/linux/posix_types.h:4, from include/uapi/linux/types.h:13, from include/linux/types.h:5, from kernel/rcu/rcutorture.c:25: kernel/rcu/rcutorture.c: In function 'srcu_torture_stats': >> include/linux/compiler.h:316:8: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'int' [-Wformat=] union { typeof(x) __val; char __c[1]; } __u; \ ^ include/linux/compiler.h:323:22: note: in expansion of macro '__READ_ONCE' #define READ_ONCE(x) __READ_ONCE(x, 1) ^ >> include/linux/printk.h:297:35: note: in expansion of macro 'READ_ONCE' 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/compiler.h:316:8: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'int' [-Wformat=] union { typeof(x) __val; char __c[1]; } __u; \ ^ include/linux/compiler.h:323:22: note: in expansion of macro '__READ_ONCE' #define READ_ONCE(x) __READ_ONCE(x, 1) ^ >> include/linux/printk.h:297:35: note: in expansion of macro 'READ_ONCE' 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/uapi/linux/stddef.h:1:0, from include/linux/stddef.h:4, from include/uapi/linux/posix_types.h:4, from include/uapi/linux/types.h:13, from include/linux/types.h:5, from kernel//rcu/rcutorture.c:25: kernel//rcu/rcutorture.c: In function 'srcu_torture_stats': >> include/linux/compiler.h:316:8: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'int' [-Wformat=] union { typeof(x) __val; char __c[1]; } __u; \ ^ include/linux/compiler.h:323:22: note: in expansion of macro '__READ_ONCE' #define READ_ONCE(x) __READ_ONCE(x, 1) ^ >> include/linux/printk.h:297:35: note: in expansion of macro 'READ_ONCE' 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/compiler.h:316:8: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'int' [-Wformat=] union { typeof(x) __val; char __c[1]; } __u; \ ^ include/linux/compiler.h:323:22: note: in expansion of macro '__READ_ONCE' #define READ_ONCE(x) __READ_ONCE(x, 1) ^ >> include/linux/printk.h:297:35: note: in expansion of macro 'READ_ONCE' 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 +/READ_ONCE +297 include/linux/printk.h
968ab183 Linus Torvalds 2010-11-15 281 b6c035d0 Andi Kleen 2013-08-05 282 extern asmlinkage void dump_stack(void) __cold; 968ab183 Linus Torvalds 2010-11-15 283 968ab183 Linus Torvalds 2010-11-15 284 #ifndef pr_fmt 968ab183 Linus Torvalds 2010-11-15 285 #define pr_fmt(fmt) fmt 968ab183 Linus Torvalds 2010-11-15 286 #endif 968ab183 Linus Torvalds 2010-11-15 287 6e099f55 Dan Streetman 2014-06-04 288 /* 6e099f55 Dan Streetman 2014-06-04 289 * These can be used to print at the various log levels. 6e099f55 Dan Streetman 2014-06-04 290 * All of these will print unconditionally, although note that pr_debug() 6e099f55 Dan Streetman 2014-06-04 291 * and other debug macros are compiled out unless either DEBUG is defined 6e099f55 Dan Streetman 2014-06-04 292 * or CONFIG_DYNAMIC_DEBUG is set. 6e099f55 Dan Streetman 2014-06-04 293 */ a0cba217 Linus Torvalds 2016-08-09 294 #define pr_emerg(fmt, ...) \ a0cba217 Linus Torvalds 2016-08-09 295 printk(KERN_EMERG pr_fmt(fmt), ##__VA_ARGS__) a0cba217 Linus Torvalds 2016-08-09 296 #define pr_alert(fmt, ...) \ a0cba217 Linus Torvalds 2016-08-09 @297 printk(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__) a0cba217 Linus Torvalds 2016-08-09 298 #define pr_crit(fmt, ...) \ a0cba217 Linus Torvalds 2016-08-09 299 printk(KERN_CRIT pr_fmt(fmt), ##__VA_ARGS__) a0cba217 Linus Torvalds 2016-08-09 300 #define pr_err(fmt, ...) \ a0cba217 Linus Torvalds 2016-08-09 301 printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) a0cba217 Linus Torvalds 2016-08-09 302 #define pr_warning(fmt, ...) \ a0cba217 Linus Torvalds 2016-08-09 303 printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__) a0cba217 Linus Torvalds 2016-08-09 304 #define pr_warn pr_warning a0cba217 Linus Torvalds 2016-08-09 305 #define pr_notice(fmt, ...) \
:::::: The code at line 297 was first introduced by commit :::::: a0cba2179ea4c1820fce2ee046b6ed90ecc56196 Revert "printk: create pr_<level> functions"
:::::: TO: Linus Torvalds <torvalds@linux-foundation.org> :::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
--- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation [unhandled content-type:application/gzip] | |