From: Uladzislau Rezki (Sony) Date: Wed, 1 Feb 2023 15:08:11 +0000 (+0100) Subject: lib/test_vmalloc.c: Rename kvfree_rcu() to kvfree_rcu_mightsleep() X-Git-Tag: microblaze-v6.6~697^2^3~6 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=c779b97281d52faac253e9afb004537e50ada4e8;p=linux-2.6-microblaze.git lib/test_vmalloc.c: Rename kvfree_rcu() to kvfree_rcu_mightsleep() The kvfree_rcu() macro's single-argument form is deprecated. Therefore switch to the new kvfree_rcu_mightsleep() variant. The goal is to avoid accidental use of the single-argument forms, which can introduce functionality bugs in atomic contexts and latency bugs in non-atomic contexts. Acked-by: Joel Fernandes (Google) Signed-off-by: Uladzislau Rezki (Sony) Signed-off-by: Paul E. McKenney Signed-off-by: Joel Fernandes (Google) --- diff --git a/lib/test_vmalloc.c b/lib/test_vmalloc.c index de4ee0d50906..cd2bdba6d3ed 100644 --- a/lib/test_vmalloc.c +++ b/lib/test_vmalloc.c @@ -334,7 +334,7 @@ kvfree_rcu_1_arg_vmalloc_test(void) return -1; p->array[0] = 'a'; - kvfree_rcu(p); + kvfree_rcu_mightsleep(p); } return 0;