summaryrefslogtreecommitdiffstats
path: root/kernel/rcu
diff options
context:
space:
mode:
authorKefeng Wang <wangkefeng.wang@huawei.com>2020-04-17 12:02:45 +0800
committerPaul E. McKenney <paulmck@kernel.org>2020-06-02 08:41:37 -0700
commitb3e2d20973db3ec87a6dd2fee0c88d3c2e7c2f61 (patch)
tree5fc9c31985a779fd8aa5dd1481e517848a50dd84 /kernel/rcu
parentb1fcf9b83c4149c63d1e0c699e85f93cbe28e211 (diff)
downloadlinux-b3e2d20973db3ec87a6dd2fee0c88d3c2e7c2f61.tar.bz2
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>
Diffstat (limited to 'kernel/rcu')
-rw-r--r--kernel/rcu/rcuperf.c2
1 files changed, 1 insertions, 1 deletions
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);