From: Paul E. McKenney Date: Thu, 6 Mar 2025 16:10:00 +0000 (-0800) Subject: checkpatch: Deprecate srcu_read_lock_lite() and srcu_read_unlock_lite() X-Git-Tag: v6.16-rc1~204^2^3~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9af71a26dff591e214dcd3dca7b94c908ccb825;p=thirdparty%2Fkernel%2Flinux.git checkpatch: Deprecate srcu_read_lock_lite() and srcu_read_unlock_lite() Uses of srcu_read_lock_lite() and srcu_read_unlock_lite() are better served by the new srcu_read_lock_fast() and srcu_read_unlock_fast() APIs. As in srcu_read_lock_lite() and srcu_read_unlock_lite() would never have happened had I thought a bit harder a few months ago. Therefore, mark them deprecated. Signed-off-by: Paul E. McKenney Signed-off-by: Joel Fernandes --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 3d22bf863eec9..b3b1939ccd19f 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -839,6 +839,8 @@ our %deprecated_apis = ( "kunmap" => "kunmap_local", "kmap_atomic" => "kmap_local_page", "kunmap_atomic" => "kunmap_local", + "srcu_read_lock_lite" => "srcu_read_lock_fast", + "srcu_read_unlock_lite" => "srcu_read_unlock_fast", ); #Create a search pattern for all these strings to speed up a loop below