* [mmotm:master 225/303] lib/test_find_bit.c:54:2: note: in expansion of macro 'pr_err'
@ 2017-11-11 3:49 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-11-11 3:49 UTC (permalink / raw)
To: Yury Norov
Cc: kbuild-all, Johannes Weiner, Clement Courbet, Andrew Morton,
Linux Memory Management List
[-- Attachment #1: Type: text/plain, Size: 4745 bytes --]
tree: git://git.cmpxchg.org/linux-mmotm.git master
head: 21c4efa7694b072dddce68082e16156f24e1c1f0
commit: c1b29b44f1052601fbede07cfdbdbb1ebc96fa48 [225/303] lib: test module for find_*_bit() functions
config: blackfin-allyesconfig (attached as .config)
compiler: bfin-uclinux-gcc (GCC) 6.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 c1b29b44f1052601fbede07cfdbdbb1ebc96fa48
# save the attached .config to linux build tree
make.cross ARCH=blackfin
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 long long 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: 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 long long 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: 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 long long 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: 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 long long 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);
^~~~~~
vim +/pr_err +54 lib/test_find_bit.c
38
39 /*
40 * This is Schlemiel the Painter's algorithm. It should be called after
41 * all other tests for the same bitmap because it sets all bits of bitmap to 1.
42 */
43 static int __init test_find_first_bit(void *bitmap, unsigned long len)
44 {
45 unsigned long i, cnt;
46 cycles_t cycles;
47
48 cycles = get_cycles();
49 for (cnt = i = 0; i < len; cnt++) {
50 i = find_first_bit(bitmap, len);
51 __clear_bit(i, bitmap);
52 }
53 cycles = get_cycles() - cycles;
> 54 pr_err("find_first_bit:\t\t%ld cycles,\t%ld iterations\n", cycles, cnt);
55
56 return 0;
57 }
58
---
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: 46057 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-11-11 3:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-11 3:49 [mmotm:master 225/303] lib/test_find_bit.c:54:2: note: in expansion of macro 'pr_err' kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox