Skip to content

mm/early_ioremap: clarify and clean up early_ioremap_reset()

Sang-Heon Jeon linux-arm-kernel linux-mm linux-riscv linuxppc-dev lkml 1 version Applied

Status from this message: [merged mm-stable] arm64-remove-early_ioremap_reset-call-and-__late_-macros.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3mm/early_ioremap: clarify early_ioremap_reset() semanticsmm/early_ioremap.c+7 -30 repliesApplied
2/3riscv: remove unused __late_set_fixmap() and __late_clear_fixmap()arch/riscv/include/asm/fixmap.h+0 -30 repliesApplied
3/3arm64: remove early_ioremap_reset() call and __late_* macrosarch/arm64/include/asm/fixmap.h arch/arm64/kernel/setup.c+0 -51 replyApplied

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchWill Deacon
1/3
2/3
3/3A-b

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

Read the v1 thread

Cover letter [PATCH 0/3] mm/early_ioremap: clarify and clean up early_ioremap_reset()

__late_set_fixmap() and __late_clear_fixmap() are only used after early_ioremap_reset() has been called, but the comment above them does not say anything about that. So arm64, riscv and powerpc, whose __set_fixmap() works before and after paging_init(), describe the same situation in three different ways:

                 calls reset    defines the macros
        arm64    yes            yes
        riscv    no             yes
        powerpc  no             no

Patch 1 documents when early_ioremap_reset() needs to be called and that only architectures calling it need to define the macros.

Patches 2 and 3 remove the unneeded riscv macros, which are unreachable, and the arm64 reset call and macros, which change nothing.

No functional change.

Sang-Heon Jeon (3):
mm/early_ioremap: clarify early_ioremap_reset() semantics
riscv: remove unused __late_set_fixmap() and __late_clear_fixmap()
arm64: remove early_ioremap_reset() call and __late_* macros

 arch/arm64/include/asm/fixmap.h |  3 ---
 arch/arm64/kernel/setup.c       |  2 --
 arch/riscv/include/asm/fixmap.h |  3 ---
 mm/early_ioremap.c              | 10 +++++++---
 4 files changed, 7 insertions(+), 11 deletions(-)
Signature · 1 line
2.43.0