mm: remove devm_request_free_mem_region
PATCH 1/1 mm: remove devm_request_free_mem_region
Remove the unused devm_request_free_mem_region, massage the kerneldoc comment for devm_request_free_mem_region into one documenting the actual used request_free_mem_region function and fold __request_free_mem_region into request_free_mem_region now that no other caller is left.
Signed-off-by Christoph Hellwig <[email protected]>
--- Documentation/vm/hmm.rst | 5 ++-- include/linux/ioport.h | 2 -- kernel/resource.c | 60 +++++++++------------------------------- 3 files changed, 15 insertions(+), 52 deletions(-)
Documentation/vm/hmm.rst +2 -3
@@ -299,9 +299,8 @@ These can be allocated and freed with:: memunmap_pages(&pagemap); release_mem_region(pagemap.range.start, range_len(&pagemap.range)); -There are also devm_request_free_mem_region(), devm_memremap_pages(), -devm_memunmap_pages(), and devm_release_mem_region() when the resources can -be tied to a ``struct device``. +There are also devm_memremap_pages() and devm_memunmap_pages() when the +resources can be tied to a ``struct device``. The overall migration steps are similar to migrating NUMA pages within system memory (see :ref:`Page migration <page_migration>`) but the steps are split
include/linux/ioport.h +0 -2
@@ -323,8 +323,6 @@ extern int walk_iomem_res_desc(unsigned long desc, unsigned long flags, u64 start, u64 end, void *arg, int (*func)(struct resource *, void *)); -struct resource *devm_request_free_mem_region (struct device *dev, -struct resource *base,unsigned long size);struct resource *request_free_mem_region (struct resource *base,unsigned long size,const char *name);
kernel/resource.c +13 -47
90 lines not on this page · raw message
Signature · 1 line
2.30.2
Quoted 1 line · On Tue, 18 May 2021 08:39:22 +0200 Christoph Hellwig <[email protected]> wrote:
Remove the unused
devm_request_free_mem_region
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c in -next added a new
callsite :( What's the fix?
Quoted 6 lines · Andrew Morton
Quoted 1 line · On Tue, 18 May 2021 08:39:22 +0200 Christoph Hellwig <[email protected]> wrote:
Remove the unused
devm_request_free_mem_region
drivers/gpu/drm/amd/amdkfd/kfd_migrate.cin -next added a new
callsite :( What's the fix?
Just drop the removal then.