* [linux-next:master 12909/13131] include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'cycles_t {aka unsigned int}'
@ 2017-11-13 17:59 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-11-13 17:59 UTC (permalink / raw)
To: Yury Norov
Cc: kbuild-all, Clement Courbet, Andrew Morton, Linux Memory Management List
[-- Attachment #1: Type: text/plain, Size: 5885 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: c348a99ee55feac43b5b62a5957c6d8e2b6c3abe
commit: 09588b1f1d585719b641ca55e6a3ec3db8e06a07 [12909/13131] lib: test module for find_*_bit() functions
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 09588b1f1d585719b641ca55e6a3ec3db8e06a07
# save the attached .config to linux build tree
make.cross ARCH=alpha
All warnings (new ones prefixed by >>):
In file included from include/linux/printk.h:7:0,
from include/linux/kernel.h:14,
from lib/test_find_bit.c:28:
lib/test_find_bit.c: In function 'test_find_first_bit':
>> include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'cycles_t {aka unsigned int}' [-Wformat=]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
#define KERN_ERR KERN_SOH "3" /* error conditions */
^~~~~~~~
include/linux/printk.h:302:9: note: in expansion of macro 'KERN_ERR'
printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~
lib/test_find_bit.c:54:2: note: in expansion of macro 'pr_err'
pr_err("find_first_bit:\t\t%ld cycles,\t%ld iterations\n", cycles, cnt);
^~~~~~
lib/test_find_bit.c:54:31: note: format string is defined here
pr_err("find_first_bit:\t\t%ld cycles,\t%ld iterations\n", cycles, cnt);
~~^
%d
In file included from include/linux/printk.h:7:0,
from include/linux/kernel.h:14,
from lib/test_find_bit.c:28:
lib/test_find_bit.c: In function 'test_find_next_bit':
>> include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'cycles_t {aka unsigned int}' [-Wformat=]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
#define KERN_ERR KERN_SOH "3" /* error conditions */
^~~~~~~~
include/linux/printk.h:302:9: note: in expansion of macro 'KERN_ERR'
printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~
lib/test_find_bit.c:68:2: note: in expansion of macro 'pr_err'
pr_err("find_next_bit:\t\t%ld cycles,\t%ld iterations\n", cycles, cnt);
^~~~~~
lib/test_find_bit.c:68:30: note: format string is defined here
pr_err("find_next_bit:\t\t%ld cycles,\t%ld iterations\n", cycles, cnt);
~~^
%d
In file included from include/linux/printk.h:7:0,
from include/linux/kernel.h:14,
from lib/test_find_bit.c:28:
lib/test_find_bit.c: In function 'test_find_next_zero_bit':
>> include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'cycles_t {aka unsigned int}' [-Wformat=]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
#define KERN_ERR KERN_SOH "3" /* error conditions */
^~~~~~~~
include/linux/printk.h:302:9: note: in expansion of macro 'KERN_ERR'
printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~
lib/test_find_bit.c:82:2: note: in expansion of macro 'pr_err'
pr_err("find_next_zero_bit:\t%ld cycles,\t%ld iterations\n",
^~~~~~
lib/test_find_bit.c:82:33: note: format string is defined here
pr_err("find_next_zero_bit:\t%ld cycles,\t%ld iterations\n",
~~^
%d
In file included from include/linux/printk.h:7:0,
from include/linux/kernel.h:14,
from lib/test_find_bit.c:28:
lib/test_find_bit.c: In function 'test_find_last_bit':
>> include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'cycles_t {aka unsigned int}' [-Wformat=]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
#define KERN_ERR KERN_SOH "3" /* error conditions */
^~~~~~~~
include/linux/printk.h:302:9: note: in expansion of macro 'KERN_ERR'
printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~
lib/test_find_bit.c:102:2: note: in expansion of macro 'pr_err'
pr_err("find_last_bit:\t\t%ld cycles,\t%ld iterations\n", cycles, cnt);
^~~~~~
lib/test_find_bit.c:102:30: note: format string is defined here
pr_err("find_last_bit:\t\t%ld cycles,\t%ld iterations\n", cycles, cnt);
~~^
%d
vim +5 include/linux/kern_levels.h
314ba352 Joe Perches 2012-07-30 4
04d2c8c8 Joe Perches 2012-07-30 @5 #define KERN_SOH "\001" /* ASCII Start Of Header */
04d2c8c8 Joe Perches 2012-07-30 6 #define KERN_SOH_ASCII '\001'
04d2c8c8 Joe Perches 2012-07-30 7
:::::: The code at line 5 was first introduced by commit
:::::: 04d2c8c83d0e3ac5f78aeede51babb3236200112 printk: convert the format for KERN_<LEVEL> to a 2 byte pattern
:::::: TO: Joe Perches <joe@perches.com>
:::::: 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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 51685 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-11-13 18:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-13 17:59 [linux-next:master 12909/13131] include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'cycles_t {aka unsigned int}' 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.