Commit b47d9ffb authored by Dawei Li's avatar Dawei Li Committed by Greg Kroah-Hartman
Browse files

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



commit 7f1e2fc4 upstream.

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: default avatarDawei Li <set_pte_at@outlook.com>
Signed-off-by: default avatarStafford Horne <shorne@gmail.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 52ab7710
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment