Re: [RFC][PATCH 1/8] start unifying termios convertors

2018-09-10 Thread David Howells
Al Viro wrote: > +static inline int kernel_termios_to_user_termios(struct termios2 __user *u, > + struct ktermios *k) > +{ > + int err; > + err = put_user(k->c_iflag, &u->c_iflag); > + err |= put_user(k->c_oflag, &u->c_oflag); > + err

[RFC][PATCH 1/8] start unifying termios convertors

2018-09-09 Thread Al Viro
From: Al Viro * new header (linut/termios_internal.h), pulled by the sole user of those suckers * defaults for user_termios_to_kernel_termios{,_1} and kernel_termios_to_user_termios{,_1} moved over there Signed-off-by: Al Viro --- arch/alpha/include/asm/termios.h | 6 -- arch/ia64/include/