Skip to contentSkip to conversation

checkpatch: deprecate pcim_iomap_table() and pcim_iomap_regions()

PATCH New Carlos López 1 participant 1 message Mar 4

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 checkpatch: deprecate pcim_iomap_table() and pcim_iomap_regions()

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.

---
v2: removed --base=auto noise from the patch

 scripts/checkpatch.pl | 2 ++
 1 file changed, 2 insertions(+)
scripts/checkpatch.pl +2 -0
index e56374662ff7..53ee3db59b58 100755
@@ -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
Signature · 1 line
2.51.0