summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/head_booke.h
diff options
context:
space:
mode:
authorOkash Khawaja2019-04-17 14:21:13 +0200
committerGreg Kroah-Hartman2019-04-19 15:09:10 +0200
commit496124e5e16e4974c71404bc9ddaa016156f8cb0 (patch)
tree44fdfdd19c83589f60a4acb5489cbe0a783f80e9 /arch/powerpc/kernel/head_booke.h
parentstaging: greybus: power_supply: use struct_size() helper (diff)
downloadkernel-qcow2-linux-496124e5e16e4974c71404bc9ddaa016156f8cb0.tar.gz
kernel-qcow2-linux-496124e5e16e4974c71404bc9ddaa016156f8cb0.tar.xz
kernel-qcow2-linux-496124e5e16e4974c71404bc9ddaa016156f8cb0.zip
vt: selection: allow functions to be called from inside kernel
This patch breaks set_selection() into two functions so that when called from kernel, copy_from_user() can be avoided. The two functions are called set_selection_user() and set_selection_kernel() in order to be explicit about their purposes. This also means updating any references to set_selection() and fixing for name change. It also exports set_selection_kernel() and paste_selection(). These changes are used the following patch where speakup's selection functionality calls into the above functions, thereby doing away with parallel implementation. Signed-off-by: Okash Khawaja <okash.khawaja@gmail.com> Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Tested-by: Gregory Nowak <greg@gregn.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/powerpc/kernel/head_booke.h')
0 files changed, 0 insertions, 0 deletions