Skip to content

Commit ff18cb8

Browse files
joelagnelFrederic Weisbecker
authored andcommitted
Revert "checkpatch: Error out if deprecated RCU API used"
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 1eacac3. Signed-off-by: Joel Fernandes (Google) <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]> Signed-off-by: Frederic Weisbecker <[email protected]>
1 parent 0bb80ec commit ff18cb8

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

scripts/checkpatch.pl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6427,15 +6427,6 @@ sub process {
64276427
}
64286428
}
64296429

6430-
# check for soon-to-be-deprecated single-argument k[v]free_rcu() API
6431-
if ($line =~ /\bk[v]?free_rcu\s*\([^(]+\)/) {
6432-
if ($line =~ /\bk[v]?free_rcu\s*\([^,]+\)/) {
6433-
ERROR("DEPRECATED_API",
6434-
"Single-argument k[v]free_rcu() API is deprecated, please pass rcu_head object or call k[v]free_rcu_mightsleep()." . $herecurr);
6435-
}
6436-
}
6437-
6438-
64396430
# check for unnecessary "Out of Memory" messages
64406431
if ($line =~ /^\+.*\b$logFunctions\s*\(/ &&
64416432
$prevline =~ /^[ \+]\s*if\s*\(\s*(\!\s*|NULL\s*==\s*)?($Lval)(\s*==\s*NULL\s*)?\s*\)/ &&

0 commit comments

Comments
 (0)