checkpatch: remove migrated RCU APIs from deprecated_apis
authorDavid Reaver <me@davidreaver.com>
Wed, 8 Jan 2025 19:24:54 +0000 (11:24 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 25 Jan 2025 06:47:24 +0000 (22:47 -0800)
The deprecated_apis map was created in [1] so checkpatch would flag
deprecated RCU APIs.  These deprecated APIs have since been removed from
the kernel.  This patch removes them from this map so checkpatch doesn't
waste time looking for them, and so readers of checkpatch looking for
deprecated APIs don't waste time searching for them.

Link: https://lore.kernel.org/all/20181111192904.3199-13-paulmck@linux.ibm.com/
Link: https://lkml.kernel.org/r/20250108192456.47871-1-me@davidreaver.com
Signed-off-by: David Reaver <me@davidreaver.com>
Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
Reviewed-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Acked-by: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Cc: Dwaipayan Ray <dwaipayanray1@gmail.com>
Cc: Krister Johansen <kjlx@templeofstupid.com>
Cc: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/checkpatch.pl

index 2bdc3d169af56f92cc345299efe047081350af64..c625da28cdae1c30b500001fca096bd9817ab593 100755 (executable)
@@ -834,16 +834,6 @@ foreach my $entry (@mode_permission_funcs) {
 $mode_perms_search = "(?:${mode_perms_search})";
 
 our %deprecated_apis = (
-       "synchronize_rcu_bh"                    => "synchronize_rcu",
-       "synchronize_rcu_bh_expedited"          => "synchronize_rcu_expedited",
-       "call_rcu_bh"                           => "call_rcu",
-       "rcu_barrier_bh"                        => "rcu_barrier",
-       "synchronize_sched"                     => "synchronize_rcu",
-       "synchronize_sched_expedited"           => "synchronize_rcu_expedited",
-       "call_rcu_sched"                        => "call_rcu",
-       "rcu_barrier_sched"                     => "rcu_barrier",
-       "get_state_synchronize_sched"           => "get_state_synchronize_rcu",
-       "cond_synchronize_sched"                => "cond_synchronize_rcu",
        "kmap"                                  => "kmap_local_page",
        "kunmap"                                => "kunmap_local",
        "kmap_atomic"                           => "kmap_local_page",