Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

checkpatch: add IDR to the deprecated list

As of commit 85656ec193e9, the IDR interface is marked as deprecated in
the documentation, but no checks are made in that regard for new code.
Add the existing IDR initialization APIs to the deprecated list in
checkpatch, so that if new code is introduced using these APIs, a warning
is emitted.

Link: https://lkml.kernel.org/r/20251031111908.2266077-2-clopez@suse.de
Signed-off-by: Carlos López <clopez@suse.de>
Suggested-by: Dan Williams <dan.j.williams@intel.com>
Acked-by: Dan Williams <dan.j.williams@intel.com>
Acked-by: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Cc: Dwaipayan Ray <dwaipayanray1@gmail.com>
Cc: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Carlos López and committed by
Andrew Morton
464c7ea5 7f37d88f

+4
+4
scripts/checkpatch.pl
··· 860 860 "kunmap" => "kunmap_local", 861 861 "kmap_atomic" => "kmap_local_page", 862 862 "kunmap_atomic" => "kunmap_local", 863 + #These should be enough to drive away new IDR users 864 + "DEFINE_IDR" => "DEFINE_XARRAY", 865 + "idr_init" => "xa_init", 866 + "idr_init_base" => "xa_init_flags" 863 867 ); 864 868 865 869 #Create a search pattern for all these strings to speed up a loop below