lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20240912115615.1029452-3-liaoyu15@huawei.com>
Date: Thu, 12 Sep 2024 19:56:15 +0800
From: Yu Liao <liaoyu15@...wei.com>
To: <apw@...onical.com>, <joe@...ches.com>
CC: <liaoyu15@...wei.com>, <liwei391@...wei.com>,
	<linux-kernel@...r.kernel.org>, <dwaipayanray1@...il.com>,
	<lukas.bulwahn@...il.com>
Subject: [PATCH 2/2] checkpatch: add del_timer[_sync] to the deprecated list

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@...wei.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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ