# \[PATCH 38/76\] tty: fix build error in vt\_ioctl.c if CONFIG\_COMPAT is enabled

- From: Greg Kroah-Hartman \<gregkh@suse.de\>
- Date: 2011-03-16 21:14:06 
- List: linux-serial
- Page: https://ratatoskr.run/linux-serial/2011/03/16401026
- Thread: https://ratatoskr.run/linux-serial/2011/03/3690715/t.md

```text
This was caused by the previous patch to remove the file pointer
from the tty ioctl handler.

Cc: Alan Cox <redacted>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
 include/linux/tty.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/tty.h b/include/linux/tty.h
index 483df15..ef1e012 100644
--- a/include/linux/tty.h
+++ b/include/linux/tty.h
@@ -587,7 +587,7 @@ extern int pcxe_open(struct tty_struct *tty, struct file *filp);
 extern int vt_ioctl(struct tty_struct *tty,
 		    unsigned int cmd, unsigned long arg);
 
-extern long vt_compat_ioctl(struct tty_struct *tty, struct file * file,
+extern long vt_compat_ioctl(struct tty_struct *tty,
 		     unsigned int cmd, unsigned long arg);
 
 /* tty_mutex.c */
-- 
1.7.4.1

```
