* [PATCH 0/3] mm/early_ioremap: clarify and clean up early_ioremap_reset()
@ 2026-07-08 17:06 Sang-Heon Jeon
0 siblings, 0 replies; only message in thread
From: Sang-Heon Jeon @ 2026-07-08 17:06 UTC (permalink / raw)
To: akpm, Albert Ou, Catalin Marinas, David Hildenbrand,
Palmer Dabbelt, Paul Walmsley, Will Deacon
Cc: linux-mm, Sang-Heon Jeon, Alexandre Ghiti, Liam R. Howlett,
linux-arm-kernel, linux-kernel, linux-riscv, linuxppc-dev,
Lorenzo Stoakes, Michal Hocko, Mike Rapoport, Suren Baghdasaryan,
Vlastimil Babka
__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(-)
--
2.43.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-08 17:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-08 17:06 [PATCH 0/3] mm/early_ioremap: clarify and clean up early_ioremap_reset() Sang-Heon Jeon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox