[PATCH 2/2] checkpatch: add del_timer[_sync] to the deprecated list

Yu Liao posted 2 patches 2 months, 2 weeks ago
[PATCH 2/2] checkpatch: add del_timer[_sync] to the deprecated list
Posted by Yu Liao 2 months, 2 weeks ago
del_timer[_sync]() have been deprecated and replaced by
timer_delete[_sync](). But new code still use the deprecated timer
APIs, so add them to the deprecated list.

Signed-off-by: Yu Liao <liaoyu15@huawei.com>
---
 scripts/checkpatch.pl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index ca60a2db223a..683f9805adee 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -838,6 +838,8 @@ our %deprecated_apis = (
 	"kunmap"				=> "kunmap_local",
 	"kmap_atomic"				=> "kmap_local_page",
 	"kunmap_atomic"				=> "kunmap_local",
+	"del_timer"				=> "timer_delete",
+	"del_timer_sync"			=> "timer_delete_sync",
 );
 
 #Create a search pattern for all these strings to speed up a loop below
-- 
2.33.0