aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2005-01-11 03:15:54 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-11 03:15:54 -0800
commit6ffc5f005a13511e0f4e5012dccf1bf9b48b0cfc (patch)
tree893eaf5d06fa0b107b1071caadace5e8cc1e79fe /arch
parent2162267688a19f1fb0934c040d17912b27357ebc (diff)
downloadhistory-6ffc5f005a13511e0f4e5012dccf1bf9b48b0cfc.tar.gz
[PATCH] UML: Silence some message from the console driver
This shuts up some messages about ioctls being called when they are handled by the line discipline. Signed-off-by: Jeff Dike <jdike@addtoit.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/um/drivers/line.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/um/drivers/line.c b/arch/um/drivers/line.c
index 73d6e3e0af51d8..baa9f7f46bc30a 100644
--- a/arch/um/drivers/line.c
+++ b/arch/um/drivers/line.c
@@ -198,6 +198,37 @@ int line_ioctl(struct tty_struct *tty, struct file * file,
ret = 0;
switch(cmd) {
+#ifdef TIOCGETP
+ case TIOCGETP:
+ case TIOCSETP:
+ case TIOCSETN:
+#endif
+#ifdef TIOCGETC
+ case TIOCGETC:
+ case TIOCSETC:
+#endif
+#ifdef TIOCGLTC
+ case TIOCGLTC:
+ case TIOCSLTC:
+#endif
+ case TCGETS:
+ case TCSETSF:
+ case TCSETSW:
+ case TCSETS:
+ case TCGETA:
+ case TCSETAF:
+ case TCSETAW:
+ case TCSETA:
+ case TCXONC:
+ case TCFLSH:
+ case TIOCOUTQ:
+ case TIOCINQ:
+ case TIOCGLCKTRMIOS:
+ case TIOCSLCKTRMIOS:
+ case TIOCPKT:
+ case TIOCGSOFTCAR:
+ case TIOCSSOFTCAR:
+ return -ENOIOCTLCMD;
#if 0
case TCwhatever:
/* do something */