mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2] checkpatch: deprecate pcim_iomap_table() and pcim_iomap_regions()
@ 2026-03-04 11:50 Carlos López
  0 siblings, 0 replies; only message in thread
From: Carlos López @ 2026-03-04 11:50 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-pci, Carlos López, Andy Whitcroft, Joe Perches,
	Dwaipayan Ray, Lukas Bulwahn

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@suse.de>
---
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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-03-04 11:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-04 11:50 [PATCH v2] checkpatch: deprecate pcim_iomap_table() and pcim_iomap_regions() Carlos López

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®