From: Andrew Morton drivers/char/tty_ioctl.c: In function 'set_termios': drivers/char/tty_ioctl.c:448: error: invalid storage class for function 'get_termio' drivers/char/tty_ioctl.c:447: warning: ISO C90 forbids mixed declarations and code drivers/char/tty_ioctl.c:455: error: invalid storage class for function 'inq_canon' drivers/char/tty_ioctl.c:647: error: invalid storage class for function 'send_prio_char' drivers/char/tty_ioctl.c:845: error: non-static declaration of 'n_tty_ioctl' follows static declaration drivers/char/tty_ioctl.c:669: error: previous definition of 'n_tty_ioctl' was here drivers/char/tty_ioctl.c:845: error: expected declaration or statement at end of input Cc: Alan Cox Signed-off-by: Andrew Morton --- drivers/char/tty_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/char/tty_ioctl.c~tty_ioctl-use-termios-for-the-old-structure-and-termios2-fix drivers/char/tty_ioctl.c --- a/drivers/char/tty_ioctl.c~tty_ioctl-use-termios-for-the-old-structure-and-termios2-fix +++ a/drivers/char/tty_ioctl.c @@ -416,7 +416,7 @@ static int set_termios(struct tty_struct return -EFAULT; } #else - else if (user_termios_to_kernel_termios(&tmp_termios, + } else if (user_termios_to_kernel_termios(&tmp_termios, (struct termios __user *)arg)) return -EFAULT; #endif _