Skip to content

Commit

Permalink
tty: Mark tty_del_file and __tty_hangup static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Josh Triplett authored and Greg Kroah-Hartman committed Nov 21, 2012
1 parent a5e04b7 commit 2520e27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/tty/tty_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ void tty_free_file(struct file *file)
}

/* Delete file from its tty */
void tty_del_file(struct file *file)
static void tty_del_file(struct file *file)
{
struct tty_file_private *priv = file->private_data;

Expand Down Expand Up @@ -554,7 +554,7 @@ EXPORT_SYMBOL_GPL(tty_wakeup);
* tasklist_lock to walk task list for hangup event
* ->siglock to protect ->signal/->sighand
*/
void __tty_hangup(struct tty_struct *tty)
static void __tty_hangup(struct tty_struct *tty)
{
struct file *cons_filp = NULL;
struct file *filp, *f = NULL;
Expand Down

0 comments on commit 2520e27

Please sign in to comment.