From: Andrew Morton Cc: Alan Cox Cc: Alan Cox Signed-off-by: Andrew Morton --- drivers/char/tty_ioctl.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff -puN drivers/char/tty_ioctl.c~tty-expose-new-methods-needed-for-drivers-to-get-termios-fix drivers/char/tty_ioctl.c --- a/drivers/char/tty_ioctl.c~tty-expose-new-methods-needed-for-drivers-to-get-termios-fix +++ a/drivers/char/tty_ioctl.c @@ -292,20 +292,19 @@ void tty_termios_encode_baud_rate(struct termios->c_cflag |= (BOTHER << IBSHIFT); #else if (ifound == -1 || ofound == -1) { - static int warned = 0; + static int warned; if (!warned++) - printk(KERN_WARNING "tty: Unable to return correct speed data as your architecture needs updating.\n"); + printk(KERN_WARNING "tty: Unable to return correct " + "speed data as your architecture needs updating.\n"); } #endif } - EXPORT_SYMBOL_GPL(tty_termios_encode_baud_rate); void tty_encode_baud_rate(struct tty_struct *tty, speed_t ibaud, speed_t obaud) { tty_termios_encode_baud_rate(tty->termios, ibaud, obaud); } - EXPORT_SYMBOL_GPL(tty_encode_baud_rate); /** _