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

From: Yu Liao
Date: Thu Sep 12 2024 - 08:00:19 EST


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@xxxxxxxxxx>
---
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