# Re: \[RFC V3 2/8\] mm: Stop using pxd\_ERROR()

- From: David Hildenbrand (Arm) \<david@kernel.org\>
- Date: 2026-08-18 17:25:42 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2026/08/17430247
- Thread: https://ratatoskr.run/linux-mm/2026/08/17426829/t.md

```text
On 8/18/26 06:00, Anshuman Khandual 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 later on.
> 
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Cc: David Hildenbrand <david@kernel.org>
> Cc: Lorenzo Stoakes <ljs@kernel.org>
> Cc: <redacted>
> Cc: <redacted>
> Signed-off-by: Anshuman Khandual <redacted>
> ---

Acked-by: David Hildenbrand (Arm) <david@kernel.org>

-- 
Cheers,

David

```
