# Re: \[RFC V3 5/8\] sh/mm: Stop using pte\_ERROR()

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

```text
On 8/18/26 06:00, Anshuman Khandual wrote:
> Directly use pr_err() in set_pte_phys() and drop pte_ERROR() which helps in
> eventually dropping pte_ERROR() macro across the tree. In this new printing
> __FILE__ and __LINE__ has been dropped because they are always the same and
> don't really add any value. Besides ptrval_to_str() has been able to handle
> different PTE representation with and without CONFIG_X2TLB, which helped in
> unifying error message printing.
> 
> Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
> Cc: Rich Felker <dalias@libc.org>
> Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
> Cc: <redacted>
> Cc: <redacted>
> Signed-off-by: Anshuman Khandual <redacted>
> ---

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

-- 
Cheers,

David

```
