diff options
Diffstat (limited to 'drivers/char/tty_io.c')
| -rw-r--r-- | drivers/char/tty_io.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c index 615e934da05f..bfdb90242a90 100644 --- a/drivers/char/tty_io.c +++ b/drivers/char/tty_io.c | |||
| @@ -912,7 +912,7 @@ static int hung_up_tty_ioctl(struct inode * inode, struct file * file, | |||
| 912 | return cmd == TIOCSPGRP ? -ENOTTY : -EIO; | 912 | return cmd == TIOCSPGRP ? -ENOTTY : -EIO; |
| 913 | } | 913 | } |
| 914 | 914 | ||
| 915 | static struct file_operations tty_fops = { | 915 | static const struct file_operations tty_fops = { |
| 916 | .llseek = no_llseek, | 916 | .llseek = no_llseek, |
| 917 | .read = tty_read, | 917 | .read = tty_read, |
| 918 | .write = tty_write, | 918 | .write = tty_write, |
| @@ -924,7 +924,7 @@ static struct file_operations tty_fops = { | |||
| 924 | }; | 924 | }; |
| 925 | 925 | ||
| 926 | #ifdef CONFIG_UNIX98_PTYS | 926 | #ifdef CONFIG_UNIX98_PTYS |
| 927 | static struct file_operations ptmx_fops = { | 927 | static const struct file_operations ptmx_fops = { |
| 928 | .llseek = no_llseek, | 928 | .llseek = no_llseek, |
| 929 | .read = tty_read, | 929 | .read = tty_read, |
| 930 | .write = tty_write, | 930 | .write = tty_write, |
| @@ -936,7 +936,7 @@ static struct file_operations ptmx_fops = { | |||
| 936 | }; | 936 | }; |
| 937 | #endif | 937 | #endif |
| 938 | 938 | ||
| 939 | static struct file_operations console_fops = { | 939 | static const struct file_operations console_fops = { |
| 940 | .llseek = no_llseek, | 940 | .llseek = no_llseek, |
| 941 | .read = tty_read, | 941 | .read = tty_read, |
| 942 | .write = redirected_tty_write, | 942 | .write = redirected_tty_write, |
| @@ -947,7 +947,7 @@ static struct file_operations console_fops = { | |||
| 947 | .fasync = tty_fasync, | 947 | .fasync = tty_fasync, |
| 948 | }; | 948 | }; |
| 949 | 949 | ||
| 950 | static struct file_operations hung_up_tty_fops = { | 950 | static const struct file_operations hung_up_tty_fops = { |
| 951 | .llseek = no_llseek, | 951 | .llseek = no_llseek, |
| 952 | .read = hung_up_tty_read, | 952 | .read = hung_up_tty_read, |
| 953 | .write = hung_up_tty_write, | 953 | .write = hung_up_tty_write, |
| @@ -2336,7 +2336,7 @@ static int fionbio(struct file *file, int __user *p) | |||
| 2336 | 2336 | ||
| 2337 | static int tiocsctty(struct tty_struct *tty, int arg) | 2337 | static int tiocsctty(struct tty_struct *tty, int arg) |
| 2338 | { | 2338 | { |
| 2339 | task_t *p; | 2339 | struct task_struct *p; |
| 2340 | 2340 | ||
| 2341 | if (current->signal->leader && | 2341 | if (current->signal->leader && |
| 2342 | (current->signal->session == tty->session)) | 2342 | (current->signal->session == tty->session)) |
