From: Sebastian Andrzej Siewior Date: Wed, 10 Feb 2021 08:52:48 +0000 (+0100) Subject: checkpatch: Don't check for mutex_trylock_recursive() X-Git-Tag: v5.15~1751^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c80408a8a0360fa9223b8c21c0ab8ef42e88bfe;p=platform%2Fkernel%2Flinux-starfive.git checkpatch: Don't check for mutex_trylock_recursive() mutex_trylock_recursive() has been removed from the tree, there is no need to check for it. Remove traces of mutex_trylock_recursive()'s existence. Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20210210085248.219210-3-bigeasy@linutronix.de --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 92e888e..15f7f4f 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -7069,12 +7069,6 @@ sub process { } } -# check for mutex_trylock_recursive usage - if ($line =~ /mutex_trylock_recursive/) { - ERROR("LOCKING", - "recursive locking is bad, do not use this ever.\n" . $herecurr); - } - # check for lockdep_set_novalidate_class if ($line =~ /^.\s*lockdep_set_novalidate_class\s*\(/ || $line =~ /__lockdep_no_validate__\s*\)/ ) {