[PATCH v2] checkpatch: deprecate pcim_iomap_table() and pcim_iomap_regions()
From: Carlos López
Date: Wed Mar 04 2026 - 06:55:30 EST
pcim_iomap_table() and pcim_iomap_regions() have been deprecated
since e354bb84a4c1 ("PCI: Deprecate pcim_iomap_table(),
pcim_iomap_regions_request_all()") and d140f80f6035 ("PCI: Deprecate
pcim_iomap_regions() in favor of pcim_iomap_region()") respectively.
Teach checkpatch about these to prevent adding new users of these
functions.
Signed-off-by: Carlos López <clopez@xxxxxxx>
---
v2: removed --base=auto noise from the patch
scripts/checkpatch.pl | 2 ++
1 file changed, 2 insertions(+)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index e56374662ff7..53ee3db59b58 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -866,6 +866,8 @@ our %deprecated_apis = (
"idr_init_base" => "xa_init_flags",
"rcu_read_lock_trace" => "rcu_read_lock_tasks_trace",
"rcu_read_unlock_trace" => "rcu_read_unlock_tasks_trace",
+ "pcim_iomap_regions" => "pcim_iomap_region",
+ "pcim_iomap_table" => "pcim_iomap",
);
#Create a search pattern for all these strings to speed up a loop below
--
2.51.0