OSDN Git Service

kill TIOCSER[SG]WILD
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 13 Sep 2018 20:39:58 +0000 (16:39 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 13 Oct 2018 04:50:52 +0000 (00:50 -0400)
the only user is very old setserial rc script and even that
(as far back as MCC Interim, AFAICS) doesn't actually fail -
just gives one message during the boot ("Cannot scan for wild
interrupts") and proceeds past that just fine.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/ia64/hp/sim/simserial.c
drivers/tty/amiserial.c
drivers/tty/serial/serial_core.c

index de5e691..759a3bb 100644 (file)
@@ -322,11 +322,6 @@ static int rs_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg)
        case TIOCSERCONFIG:
        case TIOCSERGETLSR: /* Get line status register */
                return -EINVAL;
-       case TIOCSERGWILD:
-       case TIOCSERSWILD:
-               /* "setserial -W" is called in Debian boot */
-               printk (KERN_INFO "TIOCSER?WILD ioctl obsolete, ignored.\n");
-               return 0;
        }
        return -ENOIOCTLCMD;
 }
index 51cfe4f..6992adf 100644 (file)
@@ -1274,12 +1274,6 @@ static int rs_ioctl(struct tty_struct *tty,
                        finish_wait(&info->tport.delta_msr_wait, &wait);
                        return ret;
 
-               case TIOCSERGWILD:
-               case TIOCSERSWILD:
-                       /* "setserial -W" is called in Debian boot */
-                       printk ("TIOCSER?WILD ioctl obsolete, ignored.\n");
-                       return 0;
-
                default:
                        return -ENOIOCTLCMD;
                }
index 2c8162b..54726c3 100644 (file)
@@ -1324,11 +1324,6 @@ uart_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg)
                ret = uart_do_autoconfig(tty, state);
                up_write(&tty->termios_rwsem);
                break;
-
-       case TIOCSERGWILD: /* obsolete */
-       case TIOCSERSWILD: /* obsolete */
-               ret = 0;
-               break;
        }
 
        if (ret != -ENOIOCTLCMD)