linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [tip: core/urgent] rcuperf: Fix printk format warning
@ 2020-06-03  9:19 tip-bot2 for Kefeng Wang
  0 siblings, 0 replies; only message in thread
From: tip-bot2 for Kefeng Wang @ 2020-06-03  9:19 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: Kefeng Wang, Paul E. McKenney, x86, LKML

The following commit has been merged into the core/urgent branch of tip:

Commit-ID:     b3e2d20973db3ec87a6dd2fee0c88d3c2e7c2f61
Gitweb:        https://git.kernel.org/tip/b3e2d20973db3ec87a6dd2fee0c88d3c2e7c2f61
Author:        Kefeng Wang <wangkefeng.wang@huawei.com>
AuthorDate:    Fri, 17 Apr 2020 12:02:45 +08:00
Committer:     Paul E. McKenney <paulmck@kernel.org>
CommitterDate: Tue, 02 Jun 2020 08:41:37 -07:00

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=]

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
---
 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 16dd1e6..9eb39c2 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);

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-03  9:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-03  9:19 [tip: core/urgent] rcuperf: Fix printk format warning tip-bot2 for Kefeng Wang

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).