[PATCH 4/4] mm: Rename GENERIC_PTDUMP and PTDUMP_CORE
Christophe Leroy
christophe.leroy at csgroup.eu
Wed Feb 12 23:38:39 PST 2025
Le 13/02/2025 à 05:09, Anshuman Khandual a écrit :
> Platforms subscribe into generic ptdump implementation via GENERIC_PTDUMP.
> But generic ptdump gets enabled via PTDUMP_CORE. These configs combination
> is confusing as they sound very similar and does not differentiate between
> platform's feature subscription and feature enablement for ptdump. Rename
> the configs as ARCH_HAS_PTDUMP and PTDUMP making it more clear and improve
> readability.
For me GENERIC_PTDUMP is more explicit and similar to GENERIC_IOMAP or
GENERIC_IOREMAP or GENERIC_GETTIMEOFDAY: The arch provides the necessary
helpers to use the generic implementation.
For me ARCH_HAS_PTDUMP just mean't that an architecture implements
PTDUMP, it doesn't mean it does it by using the generic infrastructure.
For instance, arm32 implements PTDUMP but without using the generic one
so I would say that arm32 has PTDUMP and expect it to select ARCH_HAS_PTDUMP
More information about the linux-riscv
mailing list