]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Remove probe_user_read_inst()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 14 Apr 2021 13:08:40 +0000 (13:08 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 21 Apr 2021 12:52:33 +0000 (22:52 +1000)
commit3a86ec7aec3439daf3b883ad58ed1f2f45b647fb
tree816531f5c2449d1f71784708362cc1fee3d97a13
parenta5217d674c70eb82c84ff24ce32bb17ec2930012
powerpc: Remove probe_user_read_inst()

Its name comes from former probe_user_read() function.
That function is now called copy_from_user_nofault().

probe_user_read_inst() uses copy_from_user_nofault() to read only
a few bytes. It is suboptimal.

It does the same as get_user_inst() but in addition disables
page faults.

But on the other hand, it is not used for the time being. So remove it
for now. If one day it is really needed, we can give it a new name
more in line with today's naming, and implement it using get_user_inst()

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/5f6f82572242a59bfee1e19a71194d8f7ef5fca4.1618405715.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/inst.h
arch/powerpc/lib/inst.c