* [PATCH -next] rcuperf: Fix printk format warning
@ 2020-04-17 4:02 Kefeng Wang
2020-06-02 9:52 ` Geert Uytterhoeven
0 siblings, 1 reply; 2+ messages in thread
From: Kefeng Wang @ 2020-04-17 4:02 UTC (permalink / raw)
To: Joel Fernandes, Paul E . McKenney, linux-kernel; +Cc: 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 <wangkefeng.wang@huawei.com>
---
kernel/rcu/rcuperf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/rcu/rcuperf.c b/kernel/rcu/rcuperf.c
index 16dd1e6b7c09..9eb39c20082c 100644
--- a/kernel/rcu/rcuperf.c
+++ b/kernel/rcu/rcuperf.c
@@ -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);
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] rcuperf: Fix printk format warning
2020-04-17 4:02 [PATCH -next] rcuperf: Fix printk format warning Kefeng Wang
@ 2020-06-02 9:52 ` Geert Uytterhoeven
0 siblings, 0 replies; 2+ messages in thread
From: Geert Uytterhoeven @ 2020-06-02 9:52 UTC (permalink / raw)
To: Kefeng Wang; +Cc: Joel Fernandes, Paul E . McKenney, Linux Kernel Mailing List
On Fri, Apr 17, 2020 at 6:03 AM Kefeng Wang <wangkefeng.wang@huawei.com> wrote:
> 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 <wangkefeng.wang@huawei.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-06-02 9:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-17 4:02 [PATCH -next] rcuperf: Fix printk format warning Kefeng Wang
2020-06-02 9:52 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).