aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/tty_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/tty_io.c')
-rw-r--r--drivers/char/tty_io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c
index 558ca927e32b..b9fce77c8f03 100644
--- a/drivers/char/tty_io.c
+++ b/drivers/char/tty_io.c
@@ -155,6 +155,7 @@ int tty_ioctl(struct inode * inode, struct file * file,
155 unsigned int cmd, unsigned long arg); 155 unsigned int cmd, unsigned long arg);
156static int tty_fasync(int fd, struct file * filp, int on); 156static int tty_fasync(int fd, struct file * filp, int on);
157static void release_tty(struct tty_struct *tty, int idx); 157static void release_tty(struct tty_struct *tty, int idx);
158static void __proc_set_tty(struct task_struct *tsk, struct tty_struct *tty);
158 159
159/** 160/**
160 * alloc_tty_struct - allocate a tty object 161 * alloc_tty_struct - allocate a tty object
@@ -3791,7 +3792,7 @@ void proc_clear_tty(struct task_struct *p)
3791} 3792}
3792EXPORT_SYMBOL(proc_clear_tty); 3793EXPORT_SYMBOL(proc_clear_tty);
3793 3794
3794void __proc_set_tty(struct task_struct *tsk, struct tty_struct *tty) 3795static void __proc_set_tty(struct task_struct *tsk, struct tty_struct *tty)
3795{ 3796{
3796 if (tty) { 3797 if (tty) {
3797 tty->session = process_session(tsk); 3798 tty->session = process_session(tsk);