Commit 2520e2745cf35c8fd01476dd01eacfc813649f7a

Authored by Josh Triplett
Committed by Greg Kroah-Hartman
1 parent a5e04b760a

tty: Mark tty_del_file and __tty_hangup static

Nothing outside of drivers/tty/tty_io.c references these functions, so
mark them static.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

drivers/tty/tty_io.c
... ... @@ -236,7 +236,7 @@
236 236 }
237 237  
238 238 /* Delete file from its tty */
239   -void tty_del_file(struct file *file)
  239 +static void tty_del_file(struct file *file)
240 240 {
241 241 struct tty_file_private *priv = file->private_data;
242 242  
... ... @@ -554,7 +554,7 @@
554 554 * tasklist_lock to walk task list for hangup event
555 555 * ->siglock to protect ->signal/->sighand
556 556 */
557   -void __tty_hangup(struct tty_struct *tty)
  557 +static void __tty_hangup(struct tty_struct *tty)
558 558 {
559 559 struct file *cons_filp = NULL;
560 560 struct file *filp, *f = NULL;