Re: [PATCH] mm: remove io-mapping

From: Jonathan Corbet
Date: Thu Jul 24 2025 - 14:53:43 EST


Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx> writes:

> This is dead code, which was used from commit b739f125e4eb ("i915: use
> io_mapping_map_user") but reverted a month later by commit
> 0e4fe0c9f2f9 ("Revert "i915: use io_mapping_map_user"") back in 2021.
>
> Since then nobody has used it, so remove it.
>
> Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx>
> ---
> include/linux/io-mapping.h | 231 -------------------------------------
> mm/Kconfig | 4 -
> mm/Makefile | 1 -
> mm/io-mapping.c | 30 -----
> 4 files changed, 266 deletions(-)
> delete mode 100644 include/linux/io-mapping.h
> delete mode 100644 mm/io-mapping.c

[...]

> -/*
> - * The io_mapping mechanism provides an abstraction for mapping
> - * individual pages from an io device to the CPU in an efficient fashion.
> - *
> - * See Documentation/driver-api/io-mapping.rst
> - */
^
|
You'll want to get rid of that file --+ too

jon