summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorKefeng Wang <wangkefeng.wang@huawei.com>2020-04-17 06:02:45 +0200
committerPaul E. McKenney <paulmck@kernel.org>2020-06-02 17:41:37 +0200
commitb3e2d20973db3ec87a6dd2fee0c88d3c2e7c2f61 (patch)
tree5fc9c31985a779fd8aa5dd1481e517848a50dd84 /kernel
parentrcu: Provide __rcu_is_watching() (diff)
downloadlinux-b3e2d20973db3ec87a6dd2fee0c88d3c2e7c2f61.tar.xz
linux-b3e2d20973db3ec87a6dd2fee0c88d3c2e7c2f61.zip
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')
-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);