Re: [PATCH 05/50] tty_ioctl(): start taking TIOC[SG]SERIAL into separate methods

2018-09-14 Thread Johan Hovold
On Fri, Sep 14, 2018 at 04:18:54PM +0100, Al Viro wrote: > On Fri, Sep 14, 2018 at 03:22:16PM +0200, Johan Hovold wrote: > > On Thu, Sep 13, 2018 at 03:40:04AM +0100, Al Viro wrote: > > > From: Al Viro > > > > > > ->set_serial() and ->get_serial() resp., both taking tty and > > > a kernel pointer

Re: [PATCH 05/50] tty_ioctl(): start taking TIOC[SG]SERIAL into separate methods

2018-09-14 Thread Al Viro
On Fri, Sep 14, 2018 at 03:22:16PM +0200, Johan Hovold wrote: > On Thu, Sep 13, 2018 at 03:40:04AM +0100, Al Viro wrote: > > From: Al Viro > > > > ->set_serial() and ->get_serial() resp., both taking tty and > > a kernel pointer to serial_struct. > > > > Signed-off-by: Al Viro > > --- > > driv

Re: [PATCH 05/50] tty_ioctl(): start taking TIOC[SG]SERIAL into separate methods

2018-09-14 Thread Johan Hovold
On Thu, Sep 13, 2018 at 03:40:04AM +0100, Al Viro wrote: > From: Al Viro > > ->set_serial() and ->get_serial() resp., both taking tty and > a kernel pointer to serial_struct. > > Signed-off-by: Al Viro > --- > drivers/tty/tty_io.c | 36 ++-- > include/linu

[PATCH 05/50] tty_ioctl(): start taking TIOC[SG]SERIAL into separate methods

2018-09-12 Thread Al Viro
From: Al Viro ->set_serial() and ->get_serial() resp., both taking tty and a kernel pointer to serial_struct. Signed-off-by: Al Viro --- drivers/tty/tty_io.c | 36 ++-- include/linux/tty_driver.h | 3 +++ 2 files changed, 33 insertions(+), 6 deletions(-)