forked from Minki/linux
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>
This commit is contained in:
parent
27230e5134
commit
7ee3296551
@ -322,11 +322,6 @@ static int rs_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg)
|
|||||||
case TIOCSERCONFIG:
|
case TIOCSERCONFIG:
|
||||||
case TIOCSERGETLSR: /* Get line status register */
|
case TIOCSERGETLSR: /* Get line status register */
|
||||||
return -EINVAL;
|
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;
|
return -ENOIOCTLCMD;
|
||||||
}
|
}
|
||||||
|
@ -1274,12 +1274,6 @@ static int rs_ioctl(struct tty_struct *tty,
|
|||||||
finish_wait(&info->tport.delta_msr_wait, &wait);
|
finish_wait(&info->tport.delta_msr_wait, &wait);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
case TIOCSERGWILD:
|
|
||||||
case TIOCSERSWILD:
|
|
||||||
/* "setserial -W" is called in Debian boot */
|
|
||||||
printk ("TIOCSER?WILD ioctl obsolete, ignored.\n");
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return -ENOIOCTLCMD;
|
return -ENOIOCTLCMD;
|
||||||
}
|
}
|
||||||
|
@ -1324,11 +1324,6 @@ uart_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg)
|
|||||||
ret = uart_do_autoconfig(tty, state);
|
ret = uart_do_autoconfig(tty, state);
|
||||||
up_write(&tty->termios_rwsem);
|
up_write(&tty->termios_rwsem);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TIOCSERGWILD: /* obsolete */
|
|
||||||
case TIOCSERSWILD: /* obsolete */
|
|
||||||
ret = 0;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret != -ENOIOCTLCMD)
|
if (ret != -ENOIOCTLCMD)
|
||||||
|
Loading…
Reference in New Issue
Block a user