From nobody Mon Apr 6 03:12:59 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D045ECAAD3 for ; Sun, 11 Sep 2022 13:37:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230196AbiIKNhr (ORCPT ); Sun, 11 Sep 2022 09:37:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230102AbiIKNhn (ORCPT ); Sun, 11 Sep 2022 09:37:43 -0400 Received: from smtp.smtpout.orange.fr (smtp06.smtpout.orange.fr [80.12.242.128]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82C692ED74 for ; Sun, 11 Sep 2022 06:37:42 -0700 (PDT) Received: from pop-os.home ([90.11.190.129]) by smtp.orange.fr with ESMTPA id XN9XoviJTAOp2XN9XoK3kI; Sun, 11 Sep 2022 15:37:41 +0200 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 11 Sep 2022 15:37:41 +0200 X-ME-IP: 90.11.190.129 From: Christophe JAILLET To: Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH] checkpatch: Add ida_simple_... functions to the deprecated_apis list Date: Sun, 11 Sep 2022 15:37:38 +0200 Message-Id: <940595394dfbaf4f9aa3c2411cc3d6a73558c43e.1662903451.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 --- 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 =3D ( "cond_synchronize_sched" =3D> "cond_synchronize_rcu", "kmap" =3D> "kmap_local_page", "kmap_atomic" =3D> "kmap_local_page", + "ida_simple_get" =3D> "ida_alloc(_min|_max|_range)", + "ida_simple_remove" =3D> "ida_free", ); =20 #Create a search pattern for all these strings to speed up a loop below --=20 2.34.1