Skip to content

x86/ioremap: clean up the mess in xxx_is_setup_data

Baoquan He lkml 3 versions – Applied

Status from this message: The following commit has been merged into the x86/cleanups branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 2 repliesApplied
  2. v22 patches 9 repliesSuperseded
  3. v13 patches 7 repliesApplied

Changes in v3 from the cover letter

- Add back __init to early_memremap_is_setup_data(). Tom pointed out this.
- Split out the defining and usage of SD_SIZE and put them in patch 2. Suggested by Ingo.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/3x86/ioremap: introduce helper to implement xxx_is_setup_data()arch/x86/mm/ioremap.c+35 -692 replies
2/3x86/ioremap: Clean up size calculations in xxx_is_setup_data()arch/x86/mm/ioremap.c+8 -60 replies
3/3x86/mm: clean up unused parameters of functionsarch/x86/mm/ioremap.c+7 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/3] x86/ioremap: clean up the mess in xxx_is_setup_data

Functions memremap_is_setup_data() and early_memremap_is_setup_data() share completely the same process and handling, except of the different memremap/unmap invocations. The code can be extracted and put into a helper function __memremap_is_setup_data().

And parameter 'size' is unused in implementation of memremap_is_efi_data(), memremap_is_setup_data and early_memremap_is_setup_data().

This patchset is made to clean them up.

v2->v3:
- Add back __init to early_memremap_is_setup_data(). Tom pointed out this.
- Split out the defining and usage of SD_SIZE and put them in patch 2. Suggested by Ingo.

v1->v2:
- Remove __init from helper __memremap_is_setup_data(), add __ref to helper suppress mismatch section warning.
- Merge the old patch 1 and 2 into one patch.
- Both are suggested by Tom during reviewing. Thanks to him.

Baoquan He (3):
x86/ioremap: introduce helper to implement xxx_is_setup_data() x86/ioremap: Clean up size calculations in xxx_is_setup_data() x86/mm: clean up unused parameters of functions

 arch/x86/mm/ioremap.c | 117 +++++++++++++++---------------------------
 1 file changed, 41 insertions(+), 76 deletions(-)
Signature · 1 line
2.41.0