Re: [RFC V2 6/6] mm: Drop pxd_ERROR()
Anshuman Khandual <[email protected]>
| Newsgroups | org.kernel.vger.sparclinux,dev.linux.lists.loongarch,org.infradead.lists.linux-arm-kernel,org.infradead.lists.linux-riscv,org.infradead.lists.linux-snps-arc,org.infradead.lists.linux-um,org.kernel.vger.linux-alpha,org.kernel.vger.linux-arch,org.kernel.vger.linux-csky,org.kernel.vger.linux-hexagon,org.kernel.vger.linux-kernel,org.kernel.vger.linux-m68k,org.kernel.vger.linux-mips,org.kernel.vger.linux-openrisc,org.kernel.vger.linux-parisc,org.kernel.vger.linux-s390,org.kernel.vger.linux-sh,org.kvack.linux-mm,org.ozlabs.lists.linuxppc-dev |
|---|---|
| Message-ID | <ijjadks7zjpwqlw4nbcawr3tva2r4y6gn3weuc73vbec46petn@ovlf52m2kugw> |
On Tue, Aug 11, 2026 at 08:49:43AM +0200, Geert Uytterhoeven wrote: > Hi Anshuman, > > Thanks for your patch! > > On Tue, 11 Aug 2026 at 06:22, Anshuman Khandual > <[email protected]> wrote: > > pxd_ERROR() has been used in generic mm just to print the page table entry > > in pxd_clear_bad() before clearing those out with pxd_clear() later. These > > pxd_ERROR() macros have been provided by all platforms which basically did > > the same thing. > > > > Make pxd_clear_bad() use recently added ptval_to_str() instead for printing > > page table entries thus completely dropping dependency on platform provided > > pxd_ERROR() macros which can then be dropped off. First move all required > > helpers in core MM into a header file which could then be used else where. > > Oh, the "x" in "pxd" is a wildcard? > Except that is not, as it does not match "pte" ;-) Unfortunately that's the odd one but "pxd" was the closest possible :) > > > Signed-off-by: Anshuman Khandual <[email protected]> > > > arch/m68k/include/asm/mcf_pgtable.h | 6 --- > > arch/m68k/include/asm/motorola_pgtable.h | 8 ---- > > arch/m68k/include/asm/sun3_pgtable.h | 7 ---- > > Acked-by: Geert Uytterhoeven <[email protected]> # m68k Thanks ! > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds