]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
openrisc: Use asm-generic's version of fix_to_virt() & virt_to_fix()
authorDawei Li <set_pte_at@outlook.com>
Sat, 9 Mar 2024 10:24:07 +0000 (18:24 +0800)
committerStafford Horne <shorne@gmail.com>
Sun, 10 Mar 2024 08:55:46 +0000 (08:55 +0000)
commit7f1e2fc493480086fbb375f4f6d33cb93fc069d6
tree07f3a07c67e1e0b112b223c29236ee787ff8d116
parent7b432bf376c9c198a7ff48f1ed14a14c0ffbe1fe
openrisc: Use asm-generic's version of fix_to_virt() & virt_to_fix()

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 <set_pte_at@outlook.com>
Signed-off-by: Stafford Horne <shorne@gmail.com>
arch/openrisc/include/asm/fixmap.h