Re: [PATCH 1/2] vt: selection: allow functions to be called from inside kernel

2019-04-16 Thread Greg Kroah-Hartman
On Thu, Apr 04, 2019 at 08:45:29PM +0100, Okash Khawaja wrote: > This patch breaks set_selection() into two functions so that when > called from kernel, copy_from_user() can be avoided. It also exports > set_selection() and paste_selection(). > > These changes are used the following patch where

Re: [PATCH 1/2] vt: selection: allow functions to be called from inside kernel

2019-04-04 Thread Samuel Thibault
Greg KH, le jeu. 04 avril 2019 22:35:49 +0200, a ecrit: > On Thu, Apr 04, 2019 at 08:45:29PM +0100, Okash Khawaja wrote: > > diff --git a/include/linux/selection.h b/include/linux/selection.h > > index a8f5b97b216f..171d77dfc825 100644 > > --- a/include/linux/selection.h > > +++

Re: [PATCH 1/2] vt: selection: allow functions to be called from inside kernel

2019-04-04 Thread Greg Kroah-Hartman
On Thu, Apr 04, 2019 at 08:45:29PM +0100, Okash Khawaja wrote: > diff --git a/include/linux/selection.h b/include/linux/selection.h > index a8f5b97b216f..171d77dfc825 100644 > --- a/include/linux/selection.h > +++ b/include/linux/selection.h > @@ -11,13 +11,12 @@ > #include > #include > >

[PATCH 1/2] vt: selection: allow functions to be called from inside kernel

2019-04-04 Thread Okash Khawaja
This patch breaks set_selection() into two functions so that when called from kernel, copy_from_user() can be avoided. It also exports set_selection() and paste_selection(). These changes are used the following patch where speakup's selection functionality calls into the above functions, thereby