Message ID | 20230729142738.222208-6-joel@joelfernandes.org (mailing list archive) |
---|---|
State | Accepted |
Commit | d1fab6bb0e780be908a1f469e87e70e12ca8384e |
Headers | show |
Series | misc RCU fixes and cleanups | expand |
On Sat, Jul 29, 2023 at 10:27 AM Joel Fernandes (Google) <joel@joelfernandes.org> wrote: > > The check for single-argument kfree_rcu() is no longer needed as all > users have been converted. > > This reverts commit 1eacac3255495be7502d406e2ba5444fb5c3607c. > > Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org> > --- Ignore this particular patch since it was already applied, sorry for resend. Thank you! - Joel > scripts/checkpatch.pl | 9 --------- > 1 file changed, 9 deletions(-) > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index a9841148cde2..528f619520eb 100755 > --- a/scripts/checkpatch.pl > +++ b/scripts/checkpatch.pl > @@ -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*\)/ && > -- > 2.41.0.487.g6d72f3e995-goog >
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index a9841148cde2..528f619520eb 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -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*\)/ &&
The check for single-argument kfree_rcu() is no longer needed as all users have been converted. This reverts commit 1eacac3255495be7502d406e2ba5444fb5c3607c. Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org> --- scripts/checkpatch.pl | 9 --------- 1 file changed, 9 deletions(-)