lkml.org 
[lkml]   [2022]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] checkpatch: Add ida_simple_... functions to the deprecated_apis list
Date
From include/linux/idr.h:
/*
* ida_simple_get() and ida_simple_remove() are deprecated. Use
* ida_alloc() and ida_free() instead respectively.
*/

So, add them to the list of deprecated functions.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
scripts/checkpatch.pl | 2 ++
1 file changed, 2 insertions(+)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 88365749ed2e..9cffa6fbacec 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -813,6 +813,8 @@ our %deprecated_apis = (
"cond_synchronize_sched" => "cond_synchronize_rcu",
"kmap" => "kmap_local_page",
"kmap_atomic" => "kmap_local_page",
+ "ida_simple_get" => "ida_alloc(_min|_max|_range)",
+ "ida_simple_remove" => "ida_free",
);

#Create a search pattern for all these strings to speed up a loop below
--
2.34.1
\
 
 \ /
  Last update: 2022-09-11 15:37    [W:1.123 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site