Re: [PATCH] openrisc: Use asm-generic's version of fix_to_virt() & virt_to_fix()

2024-03-10 Thread Stafford Horne
On Sat, Mar 09, 2024 at 06:24:07PM +0800, Dawei Li wrote: > Openrisc's implementation of fix_to_virt() & virt_to_fix() share same > functionality with ones of asm generic. > > Plus, generic version of fix_to_virt() can trap invalid index at compile > time. > > Thus, Replace the arch-specific

[PATCH] openrisc: Use asm-generic's version of fix_to_virt() & virt_to_fix()

2024-03-09 Thread Dawei Li
Openrisc's implementation of fix_to_virt() & virt_to_fix() share same functionality with ones of asm generic. Plus, generic version of fix_to_virt() can trap invalid index at compile time. Thus, Replace the arch-specific implementations with asm generic's ones. Signed-off-by: Dawei Li ---