Skip to content

Commit 9a4f90e

Browse files
ljskernelakpm00
authored andcommitted
mm: remove mm/io-mapping.c
This is dead code, which was used from commit b739f12 ("i915: use io_mapping_map_user") but reverted a month later by commit 0e4fe0c ("Revert "i915: use io_mapping_map_user"") back in 2021. Since then nobody has used it, so remove it. [akpm@linux-foundation.org: update Documentation/core-api/mm-api.rst, per Vlastimil] Link: https://lkml.kernel.org/r/20250725142901.81502-1-lorenzo.stoakes@oracle.com Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> Acked-by: David Hildenbrand <david@redhat.com> Acked-by: Vlastimil Babka <vbabka@suse.cz> Cc: Liam Howlett <liam.howlett@oracle.com> Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 22d0229 commit 9a4f90e

5 files changed

Lines changed: 0 additions & 39 deletions

File tree

Documentation/core-api/mm-api.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,3 @@ More Memory Management Functions
139139
.. kernel-doc:: mm/mmu_notifier.c
140140
.. kernel-doc:: mm/balloon_compaction.c
141141
.. kernel-doc:: mm/huge_memory.c
142-
.. kernel-doc:: mm/io-mapping.c

include/linux/io-mapping.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,4 @@ io_mapping_free(struct io_mapping *iomap)
225225
kfree(iomap);
226226
}
227227

228-
int io_mapping_map_user(struct io_mapping *iomap, struct vm_area_struct *vma,
229-
unsigned long addr, unsigned long pfn, unsigned long size);
230-
231228
#endif /* _LINUX_IO_MAPPING_H */

mm/Kconfig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,10 +1242,6 @@ config KMAP_LOCAL
12421242
config KMAP_LOCAL_NON_LINEAR_PTE_ARRAY
12431243
bool
12441244

1245-
# struct io_mapping based helper. Selected by drivers that need them
1246-
config IO_MAPPING
1247-
bool
1248-
12491245
config MEMFD_CREATE
12501246
bool "Enable memfd_create() system call" if EXPERT
12511247

mm/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ obj-$(CONFIG_MEMFD_CREATE) += memfd.o
141141
obj-$(CONFIG_MAPPING_DIRTY_HELPERS) += mapping_dirty_helpers.o
142142
obj-$(CONFIG_PTDUMP) += ptdump.o
143143
obj-$(CONFIG_PAGE_REPORTING) += page_reporting.o
144-
obj-$(CONFIG_IO_MAPPING) += io-mapping.o
145144
obj-$(CONFIG_HAVE_BOOTMEM_INFO_NODE) += bootmem_info.o
146145
obj-$(CONFIG_GENERIC_IOREMAP) += ioremap.o
147146
obj-$(CONFIG_SHRINKER_DEBUG) += shrinker_debug.o

mm/io-mapping.c

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)