Skip to content

Commit 7ee3296

Browse files
author
Al Viro
committed
kill TIOCSER[SG]WILD
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>
1 parent 27230e5 commit 7ee3296

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

arch/ia64/hp/sim/simserial.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -322,11 +322,6 @@ static int rs_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg)
322322
case TIOCSERCONFIG:
323323
case TIOCSERGETLSR: /* Get line status register */
324324
return -EINVAL;
325-
case TIOCSERGWILD:
326-
case TIOCSERSWILD:
327-
/* "setserial -W" is called in Debian boot */
328-
printk (KERN_INFO "TIOCSER?WILD ioctl obsolete, ignored.\n");
329-
return 0;
330325
}
331326
return -ENOIOCTLCMD;
332327
}

drivers/tty/amiserial.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,12 +1274,6 @@ static int rs_ioctl(struct tty_struct *tty,
12741274
finish_wait(&info->tport.delta_msr_wait, &wait);
12751275
return ret;
12761276

1277-
case TIOCSERGWILD:
1278-
case TIOCSERSWILD:
1279-
/* "setserial -W" is called in Debian boot */
1280-
printk ("TIOCSER?WILD ioctl obsolete, ignored.\n");
1281-
return 0;
1282-
12831277
default:
12841278
return -ENOIOCTLCMD;
12851279
}

drivers/tty/serial/serial_core.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,11 +1324,6 @@ uart_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg)
13241324
ret = uart_do_autoconfig(tty, state);
13251325
up_write(&tty->termios_rwsem);
13261326
break;
1327-
1328-
case TIOCSERGWILD: /* obsolete */
1329-
case TIOCSERSWILD: /* obsolete */
1330-
ret = 0;
1331-
break;
13321327
}
13331328

13341329
if (ret != -ENOIOCTLCMD)

0 commit comments

Comments
 (0)