[RFC V3 5/8] sh/mm: Stop using pte_ERROR()

David Hildenbrand (Arm) david at kernel.org
Tue Aug 18 10:26:31 PDT 2026


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 at users.sourceforge.jp>
> Cc: Rich Felker <dalias at libc.org>
> Cc: John Paul Adrian Glaubitz <glaubitz at physik.fu-berlin.de>
> Cc: linux-sh at vger.kernel.org
> Cc: linux-kernel at vger.kernel.org
> Signed-off-by: Anshuman Khandual <anshuman.khandual at arm.com>
> ---

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

-- 
Cheers,

David



More information about the linux-um mailing list