]> www.infradead.org Git - users/willy/pagecache.git/commitdiff
Revert "checkpatch: Error out if deprecated RCU API used"
authorJoel Fernandes (Google) <joel@joelfernandes.org>
Tue, 25 Jul 2023 23:29:10 +0000 (23:29 +0000)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 27 Jul 2023 20:36:33 +0000 (13:36 -0700)
The definition for single-argument kfree_rcu() has been removed,
so that any further attempt to use it will result in a build error.
Because of this build error, there is no longer any need for a special
check in checkpatch.pl.

Therefore, revert commit 1eacac3255495be7502d406e2ba5444fb5c3607c.

Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
scripts/checkpatch.pl

index a9841148cde251b53faca801269c8f1f8300f8b1..528f619520eb9abc38426ba3e43c998619d11a1e 100755 (executable)
@@ -6422,15 +6422,6 @@ sub process {
                        }
                }
 
-# check for soon-to-be-deprecated single-argument k[v]free_rcu() API
-               if ($line =~ /\bk[v]?free_rcu\s*\([^(]+\)/) {
-                       if ($line =~ /\bk[v]?free_rcu\s*\([^,]+\)/) {
-                               ERROR("DEPRECATED_API",
-                                     "Single-argument k[v]free_rcu() API is deprecated, please pass rcu_head object or call k[v]free_rcu_mightsleep()." . $herecurr);
-                       }
-               }
-
-
 # check for unnecessary "Out of Memory" messages
                if ($line =~ /^\+.*\b$logFunctions\s*\(/ &&
                    $prevline =~ /^[ \+]\s*if\s*\(\s*(\!\s*|NULL\s*==\s*)?($Lval)(\s*==\s*NULL\s*)?\s*\)/ &&