rcuperf: Fix printk format warning
PATCH 1/1 rcuperf: Fix printk format warning
Using "%zu" to fix following warning,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=]
--- kernel/rcu/rcuperf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/rcu/rcuperf.c +1 -1
@@ -723,7 +723,7 @@ kfree_perf_init(void)schedule_timeout_uninterruptible (1 ); } -pr_alert ("kfree object size=%lu\n" , kfree_mult *sizeof (struct kfree_obj )); +pr_alert ("kfree object size=%zu\n" , kfree_mult *sizeof (struct kfree_obj )); kfree_reader_tasks =kcalloc (kfree_nrealthreads,sizeof (kfree_reader_tasks[0 ]),GFP_KERNEL );
Signature · 1 line
2.20.1
Quoted 5 lines · Kefeng Wang
Using "%zu" to fix following warning,
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=]Signed-off-by Kefeng Wang <[email protected]>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds