* [linux-next:master 4045/12102] include/linux/printk.h:295:9: note: in expansion of macro 'KERN_ALERT'
@ 2020-05-23 14:14 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-05-23 14:14 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4526 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: c11d28ab4a691736e30b49813fb801847bd44e83
commit: f87dc808009ac86c790031627698ef1a34c31e25 [4045/12102] rcuperf: Add ability to increase object allocation size
config: i386-debian-10.3 (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build):
git checkout f87dc808009ac86c790031627698ef1a34c31e25
# save the attached .config to linux build tree
make ARCH=i386
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 include/linux/printk.h:7:0,
from include/linux/kernel.h:15,
from kernel/rcu/rcuperf.c:13:
kernel/rcu/rcuperf.c: In function 'kfree_perf_init':
include/linux/kern_levels.h:5:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'unsigned int' [-Wformat=]
#define KERN_SOH "001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:9:20: note: in expansion of macro 'KERN_SOH'
#define KERN_ALERT KERN_SOH "1" /* action must be taken immediately */
^~~~~~~~
>> include/linux/printk.h:295:9: note: in expansion of macro 'KERN_ALERT'
printk(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~
kernel/rcu/rcuperf.c:726:2: note: in expansion of macro 'pr_alert'
pr_alert("kfree object size=%lun", kfree_mult * sizeof(struct kfree_obj));
^~~~~~~~
kernel/rcu/rcuperf.c:726:32: note: format string is defined here
pr_alert("kfree object size=%lun", kfree_mult * sizeof(struct kfree_obj));
~~^
%u
vim +/KERN_ALERT +295 include/linux/printk.h
968ab1838a5d48 Linus Torvalds 2010-11-15 285
6e099f557d9c67 Dan Streetman 2014-06-04 286 /*
6e099f557d9c67 Dan Streetman 2014-06-04 287 * These can be used to print at the various log levels.
6e099f557d9c67 Dan Streetman 2014-06-04 288 * All of these will print unconditionally, although note that pr_debug()
6e099f557d9c67 Dan Streetman 2014-06-04 289 * and other debug macros are compiled out unless either DEBUG is defined
6e099f557d9c67 Dan Streetman 2014-06-04 290 * or CONFIG_DYNAMIC_DEBUG is set.
6e099f557d9c67 Dan Streetman 2014-06-04 291 */
a0cba2179ea4c1 Linus Torvalds 2016-08-09 292 #define pr_emerg(fmt, ...) \
a0cba2179ea4c1 Linus Torvalds 2016-08-09 293 printk(KERN_EMERG pr_fmt(fmt), ##__VA_ARGS__)
a0cba2179ea4c1 Linus Torvalds 2016-08-09 294 #define pr_alert(fmt, ...) \
a0cba2179ea4c1 Linus Torvalds 2016-08-09 @295 printk(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__)
a0cba2179ea4c1 Linus Torvalds 2016-08-09 296 #define pr_crit(fmt, ...) \
a0cba2179ea4c1 Linus Torvalds 2016-08-09 297 printk(KERN_CRIT pr_fmt(fmt), ##__VA_ARGS__)
a0cba2179ea4c1 Linus Torvalds 2016-08-09 298 #define pr_err(fmt, ...) \
a0cba2179ea4c1 Linus Torvalds 2016-08-09 299 printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
61ff72f4016804 Kefeng Wang 2019-11-28 300 #define pr_warn(fmt, ...) \
a0cba2179ea4c1 Linus Torvalds 2016-08-09 301 printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
a0cba2179ea4c1 Linus Torvalds 2016-08-09 302 #define pr_notice(fmt, ...) \
a0cba2179ea4c1 Linus Torvalds 2016-08-09 303 printk(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__)
a0cba2179ea4c1 Linus Torvalds 2016-08-09 304 #define pr_info(fmt, ...) \
a0cba2179ea4c1 Linus Torvalds 2016-08-09 305 printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
7b1460eccad062 Steven Rostedt 2015-04-15 306 /*
7b1460eccad062 Steven Rostedt 2015-04-15 307 * Like KERN_CONT, pr_cont() should only be used when continuing
7b1460eccad062 Steven Rostedt 2015-04-15 308 * a line with no newline ('\n') enclosed. Otherwise it defaults
7b1460eccad062 Steven Rostedt 2015-04-15 309 * back to KERN_DEFAULT.
7b1460eccad062 Steven Rostedt 2015-04-15 310 */
968ab1838a5d48 Linus Torvalds 2010-11-15 311 #define pr_cont(fmt, ...) \
968ab1838a5d48 Linus Torvalds 2010-11-15 312 printk(KERN_CONT fmt, ##__VA_ARGS__)
968ab1838a5d48 Linus Torvalds 2010-11-15 313
:::::: The code at line 295 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 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: 34538 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-05-23 14:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-23 14:14 [linux-next:master 4045/12102] include/linux/printk.h:295:9: note: in expansion of macro 'KERN_ALERT' kbuild test robot
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.