From: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
To: Andy Whitcroft <apw@canonical.com>, Joe Perches <joe@perches.com>,
Dwaipayan Ray <dwaipayanray1@gmail.com>,
Lukas Bulwahn <lukas.bulwahn@gmail.com>
Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org,
Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Subject: [PATCH] checkpatch: Add ida_simple_... functions to the deprecated_apis list
Date: Sun, 11 Sep 2022 15:37:38 +0200 [thread overview]
Message-ID: <940595394dfbaf4f9aa3c2411cc3d6a73558c43e.1662903451.git.christophe.jaillet@wanadoo.fr> (raw)
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
reply other threads:[~2022-09-11 13:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=940595394dfbaf4f9aa3c2411cc3d6a73558c43e.1662903451.git.christophe.jaillet@wanadoo.fr \
--to=christophe.jaillet@wanadoo.fr \
--cc=apw@canonical.com \
--cc=dwaipayanray1@gmail.com \
--cc=joe@perches.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lukas.bulwahn@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).