Skip to content

mm: clean up names and parameters of memmap_init_xxxx functions

Baoquan He linux-mm lkml 3 versions – Applied

Status from this message: [merged] mm-rename-memmap_init-and-memmap_init_zone.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest5 patches 4 repliesApplied 5/5
  2. v44 patches 6 repliesSuperseded
  3. v34 patches 6 repliesSuperseded

Changes in v5 from the cover letter

- Add patch 1 into series which fixes a prototype warning from kernel test robot. Then rebase the v4 patches on top of it.

Patches in v5 All 5 applied

#Subject and filesSizeRepliesApplied
1/5mm: fix prototype warning from kernel test robotarch/ia64/include/asm/pgtable.h include/linux/mm.h+2 -61 replyApplied
2/5mm: rename memmap_init() and memmap_init_zone()arch/ia64/mm/init.c include/linux/mm.h mm/memory_hotplug.c +1 more+10 -101 replyApplied
3/5mm: simplify parater of function memmap_init_zone()arch/ia64/mm/init.c include/linux/mm.h mm/page_alloc.c+19 -201 replyApplied
4/5mm: simplify parameter of setup_usemap()mm/page_alloc.c+7 -100 repliesApplied
5/5mm: remove unneeded local variable in free_area_init_coremm/page_alloc.c+1 -20 repliesApplied

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMike RapoportDavid Hildenbrand
SeriesR-b
1/5R-b
2/5R-b
3/5R-b
4/5R-b R-b
5/5R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/5] mm: clean up names and parameters of memmap_init_xxxx functions

This patchset is correcting inappropriate function names of memmap_init_xxx, and simplify parameters of functions in the code flow. And also fix a prototype warning reported by lkp.

This is based on the latest next/master.

V4 can be found here:
https://lore.kernel.org/linux-mm/[email protected]/

v4->v5:
- Add patch 1 into series which fixes a prototype warning from kernel test robot. Then rebase the v4 patches on top of it.

v3->v4:
- Rebased patch 1, 2 on top of Mike's below new patch.
[PATCH v3 0/2] mm: fix initialization of struct page for holes in memory layout

- Move the code of renaming function parameter 'range_start_pfn' and local variable 'range_end_pfn' of memmap_init() from patch 1 to patch 2 according to David's comment.

- Use the reverse Christmas tree style to reorder the local variables in memmap_init_zone() in patch 2 accodrding to David's comment.

Baoquan He (5):
mm: fix prototype warning from kernel test robot
mm: rename memmap_init() and memmap_init_zone()
mm: simplify parater of function memmap_init_zone()
mm: simplify parameter of setup_usemap()
mm: remove unneeded local variable in free_area_init_core

 arch/ia64/include/asm/pgtable.h |  6 -----
 arch/ia64/mm/init.c             | 14 +++++-----
 include/linux/mm.h              |  3 ++-
 mm/memory_hotplug.c             |  2 +-
 mm/page_alloc.c                 | 46 ++++++++++++++-------------------
 5 files changed, 31 insertions(+), 40 deletions(-)
Signature · 1 line
2.17.2